Class: Datadog::JSONLogger
- Inherits:
-
Logger
- Object
- Logger
- Datadog::JSONLogger
- Defined in:
- lib/datadog/json_logger.rb
Class Method Summary collapse
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(output = default_output) ⇒ JSONLogger
constructor
A new instance of JSONLogger.
Constructor Details
#initialize(output = default_output) ⇒ JSONLogger
Returns a new instance of JSONLogger.
12 13 14 15 |
# File 'lib/datadog/json_logger.rb', line 12 def initialize(output = default_output) super @default_formatter = ::Datadog::Loggers::JSONFormatter end |
Class Method Details
.config ⇒ Object
17 18 19 |
# File 'lib/datadog/json_logger.rb', line 17 def self.config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
21 22 23 |
# File 'lib/datadog/json_logger.rb', line 21 def self.configure yield(config) end |
Instance Method Details
#config ⇒ Object
25 26 27 |
# File 'lib/datadog/json_logger.rb', line 25 def config self.class.config end |