Skip to content

Releases: dry-rb/dry-logger

v1.0.4

10 May 03:19
v1.0.4
Compare
Choose a tag to compare

Fixed

  • Accept log messages via given block, ensuring compatibility with standard Ruby logger (via #28) (@komidore64)

Changed

Compare v1.0.3...v1.0.4

v1.0.3

09 Dec 16:42
v1.0.3
a429e6b
Compare
Choose a tag to compare

Added

  • Support for ruby 2.7 (needs backports gem that you need to add to your Gemfile) (via #24) (@solnic)

Compare v1.0.2...v1.0.3

v1.0.2

24 Nov 06:41
v1.0.2
Compare
Choose a tag to compare

Fixed

  • Handle :log_if in Proxy constructors (via #23) (@solnic)

Compare v1.0.1...v1.0.2

v1.0.1

23 Nov 06:36
v1.0.1
bb82445
Compare
Choose a tag to compare

Fixed

Compare v1.0.0...v1.0.1

v1.0.0

17 Nov 12:16
v1.0.0
23e6dc2
Compare
Choose a tag to compare

This is a port of the original Hanami logger from hanami-utils extended with support for logging
dispatchers that can log to different destinations and plenty more.

Added

  • Support arbitrary logging backends through proxy (via #12) (@solnic)
  • Support for conditional logging when using arbitrary logging backends (via #13) (@solnic)
  • Support for registering templates via Dry::Logger.register_template (via #14) (@solnic)
  • Support for payload keys as template tokens (via #14) (@solnic)
  • Support for payload value formatter methods, ie if there's :verb token your formatter can implement format_verb(value) (via #14) (@solnic)
  • Support block-based setup (via #16) (@solnic)
  • Support for defining cherry-picked keys from the payload in string templates (via #17) (@solnic)
  • Support for %<payload>s template token. It will be replaced by a formatted payload, excluding any key that you specified explicitly in the template (via #17) (@solnic)
  • Support for colorized output using color tags in templates (via #18) (@solnic)
  • Support for colorize: true logger option which enables severity coloring in string formatter (via #18) (@solnic)
  • :details template: "[%<progname>s] [%<severity>s] [%<time>s] %<message>s %<payload>s" (@solnic)
  • A new option on_crash for setting up a logger-crash handling proc (via #21) (@solnic)
  • Handle logger crashes by default using a simple $stdout logger (via #21) (@solnic)
  • Support for regular logger backends that don't support log? predicate (@solnic)
  • Support for providing a string template for log entries via template option (via #7) (@solnic)
  • :rack string log formatter which inlines request info and displays params at the end (@solnic)
  • Conditional log dispatch via #log_if backend's predicate (via #9) (@solnic)
  • Add support for shared context and tagged log entries (via #10) (@solnic)

v1.0.0.rc2

08 Nov 11:43
v1.0.0.rc2
1a15c4f
Compare
Choose a tag to compare

Added

  • Support for regular logger backends that don't support log? predicate (@solnic)

Fixed

  • Added missing require of 'stringio' (@solnic)

Changed

  • Renamed Dispatcher#call=>forward because some libraries use #call in a different way (@solnic)

Compare v1.0.0.rc1...v1.0.0.rc2

v1.0.0.rc1

07 Nov 21:02
v1.0.0.rc1
9ebe3b8
Compare
Choose a tag to compare

This is a port of the original Hanami logger from hanami-utils extended with support for logging
dispatchers that can log to different destinations.

Added

  • Support for providing a string template for log entries via template option (via #7) (@solnic)
  • :rack string log formatter which inlines request info and displays params at the end (@solnic)
  • Conditional log dispatch via #log_if backend's predicate (via #9) (@solnic)
  • Add support for shared context and tagged log entries (via #10) (@solnic)