oohlalog 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/oohlalog/logger.rb +5 -2
- data/lib/oohlalog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjdiODczZWIzOGViYTBjN2YzOGVkNjJiN2YwYTVlZjgxMzMwODNjNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjQ2N2Q5ZTlhY2Y4MjllZjIxZGM0MGJhNGNkNDI4YzgzM2JmZjkyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjlmOTc2YjRkZWViNTYzMTlkMzEyNWFmNGQ5OTMzZDEzZTZmYTBmNDI1ZjZk
|
10
|
+
NzU5ODFmNzk4ODc3YjljOGU4NjgyNTIwZTY2ZTA2ZmMzMTRmZjU3ZmE1NTlk
|
11
|
+
M2U2YTZmMmM4NzE4MGZiZjUyOGI1MDQ3YTQzMDkyMzYwOWRlYmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTQ2OGU0ZmY5NDM1ZTMwYWYyMWI5YmJjNDY0NzI1ZjZhODBmZTJiNmRkNzEz
|
14
|
+
NmU3NDUzYTdhNTQ5OTliNzJlMDQ3MTllZjJlZjM1YmU1MTljZjI4YmZlMmI4
|
15
|
+
MGQ3MjFkZjIzMmMyYTczMTU1ZmE2NzI3MGRhMzU5YzgzNmUwZDQ=
|
data/lib/oohlalog/logger.rb
CHANGED
@@ -28,9 +28,12 @@ class Oohlalog::Logger
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def add(severity, message, category=nil, details=nil)
|
31
|
-
return if message.nil? || message.empty?
|
31
|
+
return if message.nil? || message.to_s.empty?
|
32
32
|
if severity >= self.level
|
33
|
-
|
33
|
+
if details.nil? && defined?(message.backtrace)
|
34
|
+
details = message.backtrace.join("\n")
|
35
|
+
end
|
36
|
+
@buffer << {level: severity_string(severity), message: message.to_s.gsub(/\e\[(\d+)m/, '') , category: category, details: details, timestamp:Time.now.to_i * 1000, hostName: Socket.gethostname}
|
34
37
|
check_buffer_size
|
35
38
|
return
|
36
39
|
end
|
data/lib/oohlalog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oohlalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails/Ruby Logger Tie-in for OohLaLog.com
|
14
14
|
email:
|