role_based_authorization 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -1,6 +1,10 @@
|
|
1
|
+
# Personalizes the authorization logging by adding Auth | in front of each line.
|
2
|
+
# It also outputs the time stamp and the severity of the log message.
|
1
3
|
class AuthorizationLogger < Logger
|
4
|
+
# Prefix for each message
|
2
5
|
AUTHORIZATION_SYSTEM_LOG_MSG_PREFIX = 'Auth |'
|
3
6
|
|
7
|
+
# overriding of the formatting message
|
4
8
|
def format_message(severity, timestamp, progname, msg)
|
5
9
|
"#{AUTHORIZATION_SYSTEM_LOG_MSG_PREFIX} #{timestamp.to_formatted_s(:db)} #{severity} #{msg}\n"
|
6
10
|
end
|