Class: Narou::LoggerError
- Inherits:
-
StringIO
- Object
- StringIO
- Narou::LoggerError
- Includes:
- LoggerModule
- Defined in:
- lib/narou_logger.rb
Constant Summary
Constants included from LoggerModule
Narou::LoggerModule::LOG_FORMAT_FILENAME, Narou::LoggerModule::LOG_FORMAT_TIMESTAMP
Instance Attribute Summary
Attributes included from LoggerModule
#capturing, #format_filename, #format_timestamp, #format_timestamp_disabled, #log_postfix, #logging_enabled, #stream
Instance Method Summary collapse
-
#initialize ⇒ LoggerError
constructor
A new instance of LoggerError.
- #tty? ⇒ Boolean
- #write(str) ⇒ Object
Methods included from LoggerModule
#append_log, #capture, #copy_instance, #create_log_dir, #disable_logging, #dup_with_disabled_logging, #embed_timestamp, #error, included, #init_logs, #log_filename, #log_filepath, #logging?, #save, #silence, #silent=, #silent?, #strip_color, #warn, #write_base, #write_console
Constructor Details
#initialize ⇒ LoggerError
Returns a new instance of LoggerError.
216 217 218 219 |
# File 'lib/narou_logger.rb', line 216 def initialize super self.stream = STDERR end |
Instance Method Details
#tty? ⇒ Boolean
226 227 228 |
# File 'lib/narou_logger.rb', line 226 def tty? STDERR.tty? end |
#write(str) ⇒ Object
221 222 223 224 |
# File 'lib/narou_logger.rb', line 221 def write(str) write_base(str, stream, false) super(str) end |