Class: LogKernel::ConsoleHandler

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

Instance Method Summary collapse

Instance Method Details

#write(ev) ⇒ Object



105
106
107
108
109
110
111
# File 'lib/logutils/logger.rb', line 105

def write( ev )
  if( ev.fatal? || ev.error? || ev.warn? || ev.unknown? )
    STDERR.puts ev.to_s
  else
    STDOUT.puts ev.to_s
  end
end