Skip to content

Latest commit

 

History

History
122 lines (75 loc) · 2.21 KB

File metadata and controls

122 lines (75 loc) · 2.21 KB

[0.3.7] - 2024-07-13

Added

  • allow use 'Z' instead of '+00:00' for utc formatting

Changed

  • Use chrono for correct and faster local time format

[0.3.6] - 2024-07-12

Added

  • Allow custom formatting in TimePlugin
  • Allow switching between UTC and Local Time in TimePlugin
  • Allow set level limit for SourcePlugin

Changed

  • Use time crate to do more flexible formatting

[0.3.5] - 2024-05-18

Added

  • Save the source info when the user calls the macros

Removed

  • Remove anyhow
  • Remove the unnecessary alloc field

[0.3.4] - 2024-03-13

Added

  • Add Send and Sync requirements for Plugin and Target

[0.3.3] - 2024-03-13

Changed

  • Relax the requirements for Plugin and Target
  • Add separate any trait for Plugin and Target

Removed

  • The parking_lot dependency
  • Do not pub Any to avoid conflict

[0.3.2] - 2024-03-07

Added

  • Retrieve logger's plugins and targets
  • Automatically create the directory in FileTarget

Changed

  • Print an error message if writing to the file fails

[0.3.1] - 2024-02-02

Changed

  • do not lock versions

[0.3.0] - 2024-01-27

Added

  • a nop constructor for Logger
  • a DiscardTarget for ignoring output
  • features for macros to disable some levels in compile time

Changed

  • new in Logger requires a default target

Removed

  • from_env in Logger
  • from_def in Logger

[0.2.0] - 2024-01-26

Added

  • benchmark
  • const constructor for Logger

Changed

  • unmount a plugin using a callback
  • unroute a target using a callback
  • macros support trailing commas
  • change default output target to stderr
  • record macro accept custom logger

[0.1.0] - 2024-01-24

Added

  • JSON encoding output
  • flexible plugin system
  • multiple output targets
  • extremely fast encoding speed
  • predefined default logger
  • customizable logger object
  • logging with an optional stack trace
  • the output order of the fields is fixed
  • the plugin can cancel the output of a log entry midway

Todo

  • predefined fields do not need invoked every time
  • async write support and thread local
  • log rotate by filesize, lineno, daily, hourly...
  • color support in console output
  • highlight keywords in console output
  • sampling by level