Class: RSwim::Logger
- Inherits:
-
Logger
- Object
- Logger
- RSwim::Logger
- Defined in:
- lib/rswim/logger.rb
Defined Under Namespace
Classes: LeFormatter
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(klass, *args, **options) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(klass, *args, **options) ⇒ Logger
Returns a new instance of Logger.
3 4 5 6 7 |
# File 'lib/rswim/logger.rb', line 3 def initialize(klass, *args, **) [:formatter] = LeFormatter.new(klass) super(*args, **) self.level=Logger.level end |
Class Method Details
.level ⇒ Object
14 15 16 |
# File 'lib/rswim/logger.rb', line 14 def level @level ||= ::Logger::INFO end |
.level=(severity) ⇒ Object
10 11 12 |
# File 'lib/rswim/logger.rb', line 10 def level=(severity) @level = severity end |