object_tracker 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/object_tracker/log_formatter.rb +2 -1
- data/lib/object_tracker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbba1b6c813daa4dc44a715d6a227bf999fb5572
|
4
|
+
data.tar.gz: 9b49534ea7f90a9205fa81bd9b9781bce2817110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4b2861283ab73fc8e294439098b416f472d9f22c24ef7f4278e32ebf4e62a57ba3855f09b3b7477a78ddf6ad5db732c6719331f962a4ba0bc64e1a9f25b6bb3
|
7
|
+
data.tar.gz: bdfa99c5583fb3d8d23e732713d7cb8b37ce0cdfc9b6e7157b0b22ca0e60f63eb7cdf724517d03dedd87f47de7b6efb954348d9b56288f919567c1240702a86a
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module ObjectTracker
|
2
2
|
class LogFormatter < Logger::Formatter
|
3
3
|
FORMAT = "[%s] %5s -- ObjectTracker: %s\n".freeze
|
4
|
+
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S.%6N".freeze
|
4
5
|
|
5
6
|
def call(severity, time, _progname, msg)
|
6
|
-
FORMAT % [
|
7
|
+
FORMAT % [time.strftime(TIME_FORMAT), severity, msg2str(msg)]
|
7
8
|
end
|
8
9
|
end
|
9
10
|
end
|