Skip to content

Releases: invenia/Memento.jl

v0.6.0

15 Mar 18:36
acdc366
Compare
Choose a tag to compare
  • You can now do Memento.config(getlogger("MyModule"), "info")
  • Logging CompositeExceptions will report each internal exception
  • Some 0.7 compat updates
  • Deprecations removed.

v0.5.1

07 Jan 00:21
57069ca
Compare
Choose a tag to compare

@test_log fix.

v0.5.0

21 Dec 18:14
57ce5c9
Compare
Choose a tag to compare

NOTES

Adding Handlers and Filters

Adding handlers and filters to loggers is now push!(logger, Union{Handler, Filter}) (vs add_handler(logger, handler, name)). Similarly, you can now add filters to handlers can also be done with push!(handler, filter).

Logger Hierarchy Propagation

Propagation through the logger hierarchy has changed significantly. Previously, when logger.propagate == true (default) log records would always propagate to parent loggers. This approach made it easy for log records to propagate up to the root logger's default handler, but made it more difficult to silence noisy loggers. Now, a record must pass all filters for a child logger before the record will propagate up to its parent logger. This approach makes it easier to silence child loggers (just change level on the logger), but it is slightly harder to get debug, info and notice messages from child loggers (either recursively update all loggers in the hierarchy or add a handler to the child logger directly).

Other Changes

The API was also significantly changed to be more julia. Mutating methods now end with an ! and multi-word function names no longer use _.

v0.4.0

14 Dec 18:28
9957111
Compare
Choose a tag to compare
  • Dropped Julia 0.5 support
  • Nightly deprecation fixes
  • Do-block syntax for set_level (only change the logger level for some piece of code like some test cases)
  • Deprecated the builtin Syslog type as it has been moved to Syslogs.jl
  • Deprecated the JsonFormatter in favour of a more general DictFormatter which can take a function converting the Dict to a String (e.g., JSON.json)

v0.3.2

07 Dec 18:31
Compare
Choose a tag to compare

Added Memento.register(::Logger) and included documentation for using loggers in precompiled modules.

v0.3.1

28 Nov 17:52
7ab0c4d
Compare
Choose a tag to compare
  • Fixed a typo in the log levels

v0.3.0

27 Nov 18:01
2083a54
Compare
Choose a tag to compare
  • Enables precompilation
  • Memento.config("warn") run on package initialization
  • Default logger level is now "warn" vs "not_set".

v0.2.0: Merge pull request #27 from invenia/test-0.6

26 Jun 21:36
Compare
Choose a tag to compare

Fixes 0.6 deprecation warnings using Compat.

NOTE: opted for a minor release since this changes the requirements.