LINE_SEPARATOR | = | (RbConfig::CONFIG['host_os'].match(/mswin/i) ? "\r\n" : "\n") |
Define a unit of work within a block. Within the block supplied to this method, calling unit_of_work_id will return the same 12 digit hexadecimal number string. This can then be used for tying together log entries.
For the common use case of treating a single web request as a unit of work, see the Lumberjack::Rack::UnitOfWork class.