Class: RSwim::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/rswim/logger.rb

Defined Under Namespace

Classes: LeFormatter

Class Method Summary collapse

Instance Method Summary collapse

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, **options)
  options[:formatter] = LeFormatter.new(klass)
  super(*args, **options)
  self.level=Logger.level
end

Class Method Details

.levelObject



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