Class: Fluent::Log

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

Instance Method Summary collapse

Instance Method Details

#debug?Boolean

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

@level <= LEVEL_TRACE

end

Returns:

  • (Boolean)


44
45
46
# File 'lib/fluent/log-ext.rb', line 44

def debug?
  @level <= LEVEL_DEBUG
end

#error?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/fluent/log-ext.rb', line 56

def error?
  @level <= LEVEL_ERROR
end

#fatal?Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/fluent/log-ext.rb', line 60

def fatal?
  @level <= LEVEL_FATAL
end

#info?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/fluent/log-ext.rb', line 48

def info?
  @level <= LEVEL_INFO
end

#warn?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/fluent/log-ext.rb', line 52

def warn?
  @level <= LEVEL_WARN
end