Class: RubyApp::Log::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- RubyApp::Log::Formatter
- Defined in:
- lib/ruby_app/log.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, application, message) ⇒ Object
19 20 21 |
# File 'lib/ruby_app/log.rb', line 19 def call(severity, time, application, ) return "#{severity.ljust(5, ' ')} | #{time.strftime('%Y-%m-%d %H:%M:%S %Z')} | #{Socket.gethostname} | #{Process.pid} | #{RubyApp::Session.exists? ? RubyApp::Session.session_id : '-'} | #{}\n" end |