Class: Clickstream::LogWriter

Inherits:
Logger
  • Object
show all
Defined in:
lib/clickstream/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/clickstream/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/clickstream/log_writer.rb', line 13

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