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, #silence, #silent, #silent=, #strip_color, #write_console

Class Method Details

.getObject



85
86
87
# File 'lib/logger.rb', line 85

def self.get
  instance
end

Instance Method Details

#write(str) ⇒ Object



89
90
91
92
93
94
95
96
# File 'lib/logger.rb', line 89

def write(str)
  str = str.to_s
  if str.encoding == Encoding::ASCII_8BIT
    str.force_encoding(Encoding::UTF_8)
  end
  super(strip_color(str))
  write_console(str, STDERR)
end