mini_logger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mini_logger.rb +2 -10
- data/lib/version.rb +2 -2
- metadata +1 -1
data/lib/mini_logger.rb
CHANGED
@@ -11,15 +11,9 @@ module MiniLogger
|
|
11
11
|
def method_missing( method, *arguments, &block )
|
12
12
|
|
13
13
|
self.configure unless @logger
|
14
|
-
|
15
|
-
if VALID_METHODS.include?( method )
|
16
|
-
|
17
|
-
@logger.send( method, arguments.length == 1 ? arguments[0] : arguments )
|
18
|
-
end
|
14
|
+
@logger.send( method, arguments.length == 1 ? arguments[0] : arguments ) if VALID_METHODS.include?( method )
|
19
15
|
end
|
20
16
|
|
21
|
-
|
22
|
-
#def configure( options=DEFAULT_CONFIGURATION )
|
23
17
|
def configure( atts = DEFAULT_CONFIGURATION )
|
24
18
|
|
25
19
|
@logger ||= Logger.new( atts[:log_channel] )
|
@@ -28,6 +22,4 @@ module MiniLogger
|
|
28
22
|
self
|
29
23
|
end
|
30
24
|
end
|
31
|
-
end
|
32
|
-
|
33
|
-
MiniLogger.fatal( "Yeah!!")
|
25
|
+
end
|
data/lib/version.rb
CHANGED