Sha256: 0172ec042692374c23f9a5f9e1d7dbe674b567aeb63b5bed530387c58199d951

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

class AuthorizationLogger < Logger
  AUTHORIZATION_SYSTEM_LOG_MSG_PREFIX = 'Auth |'
  
  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

5 entries across 5 versions & 1 rubygems

Version Path
role_based_authorization-0.1.4 lib/role_based_authorization/authorization_logger.rb
role_based_authorization-0.1.3 lib/role_based_authorization/authorization_logger.rb
role_based_authorization-0.1.2 lib/role_based_authorization/authorization_logger.rb
role_based_authorization-0.1.1 lib/role_based_authorization/authorization_logger.rb
role_based_authorization-0.1.0 lib/role_based_authorization/authorization_logger.rb