Module: ContextLogger
- Defined in:
- lib/context_logger.rb,
lib/context_logger/engine.rb
Defined Under Namespace
Classes: Engine
Constant Summary collapse
- SEVERITY_TYPES =
[:info, :warn, :error, :debug, :unknown, :fatal]
Class Method Summary collapse
Class Method Details
.logs_folder ⇒ Object
35 36 37 38 |
# File 'lib/context_logger.rb', line 35 def self.logs_folder # TODO: set the path from config @logs_folder ||= "#{Rails.root}/log" end |
.options ⇒ Object
31 32 33 |
# File 'lib/context_logger.rb', line 31 def self. return @options end |
.setup(options) ⇒ Object
27 28 29 |
# File 'lib/context_logger.rb', line 27 def self.setup() @options = (@options || {}).merge() end |