Class: Utility

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/utility.rb

Class Method Summary collapse

Class Method Details

.get_timeObject

one place to control time format for logginggit



3
4
5
# File 'lib/fluent/plugin/utility.rb', line 3

def self.get_time()
    return Time.now.strftime("%Y-%m-%d %H:%M:%S")
end