Module: Cosmo::Logger
- Extended by:
- Forwardable
- Defined in:
- lib/cosmo/logger.rb
Defined Under Namespace
Modules: Context
Classes: BaseFormatter, SimpleFormatter
Class Method Summary
collapse
Class Method Details
.instance ⇒ Object
62
63
64
|
# File 'lib/cosmo/logger.rb', line 62
def self.instance
@instance ||= ::Logger.new($stdout).tap { _1.formatter = SimpleFormatter.new }
end
|
.instance=(logger) ⇒ Object
66
67
68
|
# File 'lib/cosmo/logger.rb', line 66
def self.instance=(logger)
@instance = logger
end
|
.with ⇒ Object
54
55
56
|
# File 'lib/cosmo/logger.rb', line 54
def self.with(...)
Context.with(...)
end
|
.without ⇒ Object
58
59
60
|
# File 'lib/cosmo/logger.rb', line 58
def self.without(...)
Context.without(...)
end
|