Class: Dyndnsd::LogFormatter
- Inherits:
-
Object
- Object
- Dyndnsd::LogFormatter
- 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 |