Class: Glimmer::Config::OpalLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/glimmer/config/opal_logger.rb

Instance Method Summary collapse

Instance Method Details

#add(severity, message = nil, progname = nil, &block) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/glimmer/config/opal_logger.rb', line 5

def add(severity, message = nil, progname = nil, &block)
  original_logdev = @pipe
  if severity == ERROR
    @pipe = $stderr
  else
    @pipe = original_logdev
  end
  add_without_opal_logger(severity, message, progname, &block)
end

#add_without_opal_loggerObject



4
# File 'lib/glimmer/config/opal_logger.rb', line 4

alias add_without_opal_logger add