Class: Logger
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #save, #silence, #silent, #silent=, #strip_color, #write_console
Class Method Details
.get ⇒ Object
67
68
69
|
# File 'lib/logger.rb', line 67
def self.get
instance
end
|
Instance Method Details
#write(str) ⇒ Object
71
72
73
74
75
76
77
78
|
# File 'lib/logger.rb', line 71
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, STDOUT)
end
|