module Thrifty::Logger
Constants
- DEBUG
- ERROR
- Entry
- ExceptionEntry
- FATAL
- INFO
- LEVELS
- TRACE
- WARN
Public Class Methods
get_logger(scope, context = nil)
click to toggle source
# File lib/thrifty/logger.rb, line 11 def self.get_logger(scope, context = nil) App.instance.start unless App.instance.started? Context.new(App.instance, scope.to_s, context) end
stop()
click to toggle source
# File lib/thrifty/logger.rb, line 16 def self.stop App.instance.stop end
Public Instance Methods
io_appender(*args)
click to toggle source
# File lib/thrifty/logger.rb, line 28 def io_appender(*args) IoAppender.new(*args) end
logfmt_formatter()
click to toggle source
# File lib/thrifty/logger.rb, line 20 def logfmt_formatter LogfmtFormatter.new end
simple_formatter()
click to toggle source
# File lib/thrifty/logger.rb, line 24 def simple_formatter SimpleFormatter.new end