class Dyndnsd::LogFormatter

Public Instance Methods

call(lvl, _time, _progname, msg) click to toggle source

@param lvl [Object] @param _time [DateTime] @param _progname [String] @param msg [Object] @return [String]

# File lib/dyndnsd.rb, line 44
def call(lvl, _time, _progname, msg)
  format("[%s] %-5s %s\n", Time.now.strftime('%Y-%m-%d %H:%M:%S'), lvl, msg.to_s)
end