Module: Betterlog
- Defined in:
- lib/betterlog.rb,
lib/betterlog/log.rb,
lib/betterlog/railtie.rb,
lib/betterlog/version.rb,
lib/betterlog/log/event.rb,
lib/betterlog/notifiers.rb,
lib/betterlog/log/severity.rb,
lib/betterlog/global_metadata.rb,
lib/betterlog/log/event_formatter.rb,
lib/betterlog/log/legacy_event_formatter.rb
Overview
To retrieve thread-global metadata that is used to enrich data that is sent to logging and debugging tools. In addition to holding the data thread-global, this will also attempt to update current of error reporting tools etc.
Defined Under Namespace
Modules: Notifiers Classes: GlobalMetadata, Log, Railtie
Constant Summary collapse
- VERSION =
Betterlog version
'2.1.2'
- VERSION_ARRAY =
:nodoc:
VERSION.split('.').map(&:to_i)
- VERSION_MAJOR =
:nodoc:
VERSION_ARRAY[0]
- VERSION_MINOR =
:nodoc:
VERSION_ARRAY[1]
- VERSION_BUILD =
:nodoc:
VERSION_ARRAY[2]
Class Method Summary collapse
-
.with_meta(data = {}) {|data| ... } ⇒ void
Provides a convenient way to temporarily add metadata to the global metadata store within the scope of a block.
Class Method Details
.with_meta(data = {}) {|data| ... } ⇒ void
This method returns an undefined value.
Provides a convenient way to temporarily add metadata to the global metadata store within the scope of a block.
This method serves as a shortcut to Betterlog::GlobalMetadata.with_meta, allowing for easy temporary addition of metadata that is automatically removed after the block execution completes.
80 81 82 |
# File 'lib/betterlog/global_metadata.rb', line 80 def self.(data = {}, &block) Betterlog::GlobalMetadata.(data, &block) end |