Class: Fluent::Test::TestLogger
- Inherits:
-
PluginLogger
- Object
- Log
- PluginLogger
- Fluent::Test::TestLogger
- Defined in:
- lib/fluent/test/base.rb
Constant Summary
Constants inherited from Log
Log::LEVEL_DEBUG, Log::LEVEL_ERROR, Log::LEVEL_FATAL, Log::LEVEL_INFO, Log::LEVEL_TEXT, Log::LEVEL_TRACE, Log::LEVEL_WARN
Instance Attribute Summary
Attributes inherited from Log
#level, #out, #tag, #time_format
Instance Method Summary collapse
-
#initialize ⇒ TestLogger
constructor
A new instance of TestLogger.
- #logs ⇒ Object
Methods inherited from PluginLogger
#enable_color, #level=, #orig_enable_color
Methods inherited from Log
#debug, #debug_backtrace, #disable_events, #enable_color, #enable_color?, #enable_debug, #enable_event, #error, #error_backtrace, #fatal, #fatal_backtrace, #flush, #info, #info_backtrace, #on_debug, #on_error, #on_fatal, #on_info, #on_trace, #on_warn, #puts, str_to_level, #trace, #trace_backtrace, #warn, #warn_backtrace, #write
Constructor Details
#initialize ⇒ TestLogger
Returns a new instance of TestLogger.
116 117 118 119 |
# File 'lib/fluent/test/base.rb', line 116 def initialize @logdev = DummyLogDevice.new super(Fluent::Log.new(@logdev)) end |
Instance Method Details
#logs ⇒ Object
121 122 123 |
# File 'lib/fluent/test/base.rb', line 121 def logs @logdev.logs end |