Class: Dyndnsd::LogFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/dyndnsd.rb

Instance Method Summary collapse

Instance Method Details

#call(lvl, time, progname, msg) ⇒ Object



29
30
31
# File 'lib/dyndnsd.rb', line 29

def call(lvl, time, progname, msg)
  "[%s] %-5s %s\n" % [Time.now.strftime('%Y-%m-%d %H:%M:%S'), lvl, msg.to_s]
end