Class: LoggerError
- Inherits:
-
StringIO
- Object
- StringIO
- LoggerError
show all
- Includes:
- LoggerModule, Singleton
- Defined in:
- lib/logger.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #save, #silence, #silent, #silent=, #strip_color, #write_console
Class Method Details
.get ⇒ Object
97
98
99
|
# File 'lib/logger.rb', line 97
def self.get
instance
end
|
Instance Method Details
#write(str) ⇒ Object
101
102
103
104
105
106
107
108
|
# File 'lib/logger.rb', line 101
def write(str)
str = str.to_s
if str.encoding == Encoding::ASCII_8BIT
str.force_encoding(Encoding::UTF_8)
end
super(str)
write_console(str, STDERR)
end
|