Class: Nav::Logger::FileLogger
- Inherits:
-
BaseLogger
- Object
- BaseLogger
- Nav::Logger::FileLogger
- Defined in:
- lib/nav/logger/file_logger.rb
Instance Attribute Summary
Attributes inherited from BaseLogger
Instance Method Summary collapse
-
#initialize(path) ⇒ FileLogger
constructor
A new instance of FileLogger.
Methods inherited from BaseLogger
#debug, #error, #fatal, #info, #level, #level=, #level_name, #level_symbol, #log_tag, #post, #warn
Constructor Details
#initialize(path) ⇒ FileLogger
Returns a new instance of FileLogger.
4 5 6 7 8 |
# File 'lib/nav/logger/file_logger.rb', line 4 def initialize(path) @fluent_logger = Fluent::Logger::ConsoleLogger.new path io = @fluent_logger.instance_variable_get "@io" io.sync = true end |