Skip to content

Releases: chensoft/logkit

v0.3.5

18 May 14:09
Compare
Choose a tag to compare

Added

  • Save the source info when the user calls the macros

Removed

  • Remove anyhow
  • Remove the unnecessary alloc field

v0.3.4

13 Mar 02:42
Compare
Choose a tag to compare

Added

  • Add Send and Sync requirements for Plugin and Target

v0.3.3

13 Mar 02:42
Compare
Choose a tag to compare

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

v0.3.2

07 Mar 09:53
Compare
Choose a tag to compare

Added

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

Changed

  • Print an error message if writing to the file fails

v0.3.1

02 Feb 11:59
Compare
Choose a tag to compare
  • do not lock versions

v0.3.0

27 Jan 03:51
Compare
Choose a tag to compare

Added

  • a nop constructor for Logger
  • 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

v0.2.0

26 Jan 07:36
Compare
Choose a tag to compare

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

v0.1.0

24 Jan 08:24
Compare
Choose a tag to compare
  • 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