vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack.rb
# 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.
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.
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 .
def unit_of_work(id = nil)
      id ||= SecureRandom.hex(6)
      context do
        context[:unit_of_work_id] = id
        yield
      end
    end
def unit_of_work ( id = nil ) id ||= SecureRandom . hex ( 6 ) context do context [ :unit_of_work_id ] = id yield end end
Define a unit of work within a block.
Define a unit of work within a block .
id