Sha256: 3088a0631a3b3cd1d59f003ec61892a8fc7128ee9e91c8d28c96cc9381d95239
Contents?: true
Size: 305 Bytes
Versions: 4
Compression:
Stored size: 305 Bytes
Contents
require 'bundler/setup' require 'semlogr' Semlogr.logger = Semlogr::Logger.create do |c| c.write_to :console, formatter: Semlogr::Formatters::JsonFormatter.new c.enrich_with :log_context end Semlogr::Context::LogContext.push_property(a: 1) do Semlogr.info('Customer {id} checked out', id: 1) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
semlogr-0.2.3 | samples/log_context.rb |
semlogr-0.2.2 | samples/log_context.rb |
semlogr-0.2.1 | samples/log_context.rb |
semlogr-0.2.0 | samples/log_context.rb |