Class: Fluent::Log
- Inherits:
-
Object
- Object
- Fluent::Log
- Defined in:
- lib/fluent/log-ext.rb
Instance Method Summary collapse
-
#debug? ⇒ Boolean
Elasticsearch::Loggable does not request trace? method.
- #error? ⇒ Boolean
- #fatal? ⇒ Boolean
- #info? ⇒ Boolean
- #warn? ⇒ Boolean
Instance Method Details
#debug? ⇒ Boolean
Elasticsearch::Loggable does not request trace? method. def trace?
@level <= LEVEL_TRACE
end
18 19 20 |
# File 'lib/fluent/log-ext.rb', line 18 def debug? @level <= LEVEL_DEBUG end |
#error? ⇒ Boolean
30 31 32 |
# File 'lib/fluent/log-ext.rb', line 30 def error? @level <= LEVEL_ERROR end |
#fatal? ⇒ Boolean
34 35 36 |
# File 'lib/fluent/log-ext.rb', line 34 def fatal? @level <= LEVEL_FATAL end |
#info? ⇒ Boolean
22 23 24 |
# File 'lib/fluent/log-ext.rb', line 22 def info? @level <= LEVEL_INFO end |
#warn? ⇒ Boolean
26 27 28 |
# File 'lib/fluent/log-ext.rb', line 26 def warn? @level <= LEVEL_WARN end |