Class: Fluent::Log
- Inherits:
-
Object
- Object
- Fluent::Log
- Defined in:
- lib/fluent/log-ext.rb
Instance Method Summary collapse
-
#debug? ⇒ Boolean
OpenSearch::Loggable does not request trace? method.
- #error? ⇒ Boolean
- #fatal? ⇒ Boolean
- #info? ⇒ Boolean
- #warn? ⇒ Boolean
Instance Method Details
#debug? ⇒ Boolean
OpenSearch::Loggable does not request trace? method. def trace?
@level <= LEVEL_TRACE
end
44 45 46 |
# File 'lib/fluent/log-ext.rb', line 44 def debug? @level <= LEVEL_DEBUG end |
#error? ⇒ Boolean
56 57 58 |
# File 'lib/fluent/log-ext.rb', line 56 def error? @level <= LEVEL_ERROR end |
#fatal? ⇒ Boolean
60 61 62 |
# File 'lib/fluent/log-ext.rb', line 60 def fatal? @level <= LEVEL_FATAL end |
#info? ⇒ Boolean
48 49 50 |
# File 'lib/fluent/log-ext.rb', line 48 def info? @level <= LEVEL_INFO end |
#warn? ⇒ Boolean
52 53 54 |
# File 'lib/fluent/log-ext.rb', line 52 def warn? @level <= LEVEL_WARN end |