Sha256: aa0cda107db51dbb5839a05835d19aa513a62df1d4c7c39aba1351e16031a60d
Contents?: true
Size: 476 Bytes
Versions: 13
Compression:
Stored size: 476 Bytes
Contents
# Personalizes the authorization logging by adding Auth | in front of each line. # It also outputs the time stamp and the severity of the log message. class AuthorizationLogger < Logger # Prefix for each message AUTHORIZATION_SYSTEM_LOG_MSG_PREFIX = 'Auth |' # overriding of the formatting message def format_message(severity, timestamp, progname, msg) "#{AUTHORIZATION_SYSTEM_LOG_MSG_PREFIX} #{timestamp.to_formatted_s(:db)} #{severity} #{msg}\n" end end
Version data entries
13 entries across 13 versions & 1 rubygems