Class: Columbo::LogWriter

Inherits:
Logger
  • Object
show all
Defined in:
lib/columbo/log_writer.rb

Defined Under Namespace

Classes: Simple

Instance Method Summary collapse

Constructor Details

#initialize(log = STDOUT) ⇒ LogWriter

Returns a new instance of LogWriter.



6
7
8
9
10
11
# File 'lib/columbo/log_writer.rb', line 6

def initialize(log = STDOUT)
  super(log)
  self.level = Logger::INFO
  self.formatter = Simple.new
  self
end

Instance Method Details

#write(message) ⇒ Object



13
14
15
# File 'lib/columbo/log_writer.rb', line 13

def write(message)
  add Logger::INFO, message
end