Module Lumberjack
In: lib/lumberjack.rb
lib/lumberjack/rack.rb
lib/lumberjack/formatter/string_formatter.rb
lib/lumberjack/formatter/inspect_formatter.rb
lib/lumberjack/formatter/pretty_print_formatter.rb
lib/lumberjack/formatter/exception_formatter.rb
lib/lumberjack/device/writer.rb
lib/lumberjack/device/log_file.rb
lib/lumberjack/device/rolling_log_file.rb
lib/lumberjack/device/date_rolling_log_file.rb
lib/lumberjack/device/size_rolling_log_file.rb
lib/lumberjack/device/null.rb
lib/lumberjack/formatter.rb
lib/lumberjack/severity.rb
lib/lumberjack/logger.rb
lib/lumberjack/device.rb
lib/lumberjack/rack/unit_of_work.rb
lib/lumberjack/rack/request_id.rb
lib/lumberjack/template.rb
lib/lumberjack/log_entry.rb

frozen_string_literals: true

Methods

Classes and Modules

Module Lumberjack::Rack
Module Lumberjack::Severity
Class Lumberjack::Device
Class Lumberjack::Formatter
Class Lumberjack::LogEntry
Class Lumberjack::Logger
Class Lumberjack::Template

Constants

LINE_SEPARATOR = (RbConfig::CONFIG['host_os'].match(/mswin/i) ? "\r\n" : "\n")

Public Class methods

Define a unit of work within a block. Within the block supplied to this method, calling unit_of_work_id will return the same value that can This can then be used for tying together log entries.

You can specify the id for the unit of work if desired. If you don‘t supply it, a 12 digit hexidecimal number will be automatically generated for you.

For the common use case of treating a single web request as a unit of work, see the Lumberjack::Rack::UnitOfWork class.

Get the UniqueIdentifier for the current unit of work.

[Validate]