rubinius-rails_logger 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/rails_logger/version.rb +1 -1
- data/lib/rubinius/rails_logger.rb +6 -6
- 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: 635c5608bd2bf45d3dff1ad548a905e630cdbe5a
|
4
|
+
data.tar.gz: b6ea53b1f96c1f22e083e835ca4fca822b534ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773d9ac4646133e129bf6a1ff0574c2dba2c6cb923d5099a97373b36aa8886fc5cf4a9dfd1134f0c496a778aad7386324682ce750ee99cddb0832d89ae1cd00a
|
7
|
+
data.tar.gz: f47af5654c3c4be57b5e89d30bb1181ca3e9fa325bc3f448f530b6eab00af958881aef5b8cb3ed230f4af680121e50acde6be8817b80eceb251e3a5ee4d87ab3
|
@@ -35,30 +35,30 @@ module Rubinius
|
|
35
35
|
@logger.send severity, message
|
36
36
|
end
|
37
37
|
|
38
|
-
def write(message, &block)
|
38
|
+
def write(message=nil, &block)
|
39
39
|
message = yield if block_given?
|
40
40
|
@logger.write message
|
41
41
|
end
|
42
42
|
|
43
43
|
alias_method :unknown, :write
|
44
44
|
|
45
|
-
def fatal(message, &block)
|
45
|
+
def fatal(message=nil, &block)
|
46
46
|
log(:fatal, message, &block)
|
47
47
|
end
|
48
48
|
|
49
|
-
def error(message, &block)
|
49
|
+
def error(message=nil, &block)
|
50
50
|
log(:error, message, &block)
|
51
51
|
end
|
52
52
|
|
53
|
-
def warn(message, &block)
|
53
|
+
def warn(message=nil, &block)
|
54
54
|
log(:warn, message, &block)
|
55
55
|
end
|
56
56
|
|
57
|
-
def info(message, &block)
|
57
|
+
def info(message=nil, &block)
|
58
58
|
log(:info, message, &block)
|
59
59
|
end
|
60
60
|
|
61
|
-
def debug(message, &block)
|
61
|
+
def debug(message=nil, &block)
|
62
62
|
log(:debug, message, &block)
|
63
63
|
end
|
64
64
|
end
|