Class: LoggerError

Inherits:
StringIO
  • Object
show all
Includes:
LoggerModule, Singleton
Defined in:
lib/logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from LoggerModule

#initialize, #save, #silent, #silent=

Class Method Details

.getObject



48
49
50
# File 'lib/logger.rb', line 48

def self.get
  instance
end

Instance Method Details

#write(str) ⇒ Object



52
53
54
55
56
57
# File 'lib/logger.rb', line 52

def write(str)
  super
  unless @is_silent
    STDERR.write(str)
  end
end