Class: Fluent::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/log-ext.rb

Instance Method Summary collapse

Instance Method Details

#debug?Boolean

Elasticsearch::Loggable does not request trace? method. def trace?

@level <= LEVEL_TRACE

end

Returns:

  • (Boolean)


18
19
20
# File 'lib/fluent/log-ext.rb', line 18

def debug?
  @level <= LEVEL_DEBUG
end

#error?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/fluent/log-ext.rb', line 30

def error?
  @level <= LEVEL_ERROR
end

#fatal?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/fluent/log-ext.rb', line 34

def fatal?
  @level <= LEVEL_FATAL
end

#info?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/fluent/log-ext.rb', line 22

def info?
  @level <= LEVEL_INFO
end

#warn?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/fluent/log-ext.rb', line 26

def warn?
  @level <= LEVEL_WARN
end