Class Hodel3000CompliantLogger
In: lib/hodel_3000_compliant_logger.rb
Parent: Logger

A logger for use with pl_analyze and other tools that expect syslog-style log output.

Methods

Public Instance methods

Note: If you are using FastCGI you may need to hard-code the hostname here instead of using Socket.gethostname

[Source]

    # File lib/hodel_3000_compliant_logger.rb, line 13
13:   def format_message(severity, timestamp, progname, msg)
14:     "#{timestamp.strftime("%b %d %H:%M:%S")} #{hostname} rails[#{$PID}]: #{msg2str(msg).gsub(/\n/, '').lstrip}\n"
15:   end

[Validate]