module Ama::Logger
Constants
- AGENT_VERSION
- VERSION
Public Class Methods
json(io = STDOUT, **args)
click to toggle source
# File lib/ama/logger.rb, line 32 def json(io = STDOUT, **args) ::Logger.new(io, **args).tap do |instance| instance.formatter = Ama::Logger::Formatter::Json.new end end
lambda(io = STDOUT, **args)
click to toggle source
# File lib/ama/logger.rb, line 26 def lambda(io = STDOUT, **args) ::Logger.new(io, **args).tap do |instance| instance.formatter = Ama::Logger::Formatter::Lambda.new end end
root()
click to toggle source
# File lib/ama/logger.rb, line 22 def root Pathname.new(Gem.loaded_specs['ama_logger'].full_gem_path) end
stringified_hash(base, opts = {})
click to toggle source
# File lib/ama/logger.rb, line 38 def stringified_hash(base, opts = {}) base.dup.tap do |instance| instance.formatter = Ama::Logger::Formatter::StringifiedHash.new(opts) instance.progname = opts[:progname] end end