Module: Alephant::Logger
- Defined in:
- lib/alephant/logger.rb,
lib/alephant/logger/version.rb,
lib/alephant/logger/cloudwatch_decorator.rb
Defined Under Namespace
Classes: CloudWatchDecorator
Constant Summary
collapse
- VERSION =
"0.2.0"
- @@logger =
nil
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.get_logger ⇒ Object
28
29
30
|
# File 'lib/alephant/logger.rb', line 28
def self.get_logger
@@logger ||= Alephant::DelegatingLogger.new ::Logger.new(STDOUT)
end
|
.set_logger(value) ⇒ Object
32
33
34
|
# File 'lib/alephant/logger.rb', line 32
def self.set_logger(value)
@@logger = Alephant::DelegatingLogger.new value
end
|
Instance Method Details
#logger ⇒ Object
24
25
26
|
# File 'lib/alephant/logger.rb', line 24
def logger
::Alephant::Logger.get_logger
end
|