role_based_authorization 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|