mini_logger 0.2.4 → 0.2.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/README.rdoc
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
= Mini Logger:
|
2
2
|
|
3
|
-
|
4
3
|
== Installing
|
5
4
|
|
6
|
-
The latest stable version is published in
|
5
|
+
The latest stable version is published in rubygems.org.
|
7
6
|
|
8
|
-
gem source --add http://gemcutter.org
|
9
7
|
gem install mini_logger
|
10
8
|
|
11
9
|
== How to use
|
@@ -13,10 +11,19 @@ The latest stable version is published in gemcutter.
|
|
13
11
|
require 'rubygems'
|
14
12
|
require 'mini_logger'
|
15
13
|
|
14
|
+
##
|
15
|
+
# Default configuration
|
16
16
|
MiniLogger.debug( "This is a debug log line to the stderr channel" )
|
17
|
-
|
18
|
-
|
17
|
+
|
18
|
+
##
|
19
|
+
# Custom configuration
|
20
|
+
MiniLogger.cofigure( :log_channel => File.join( File.dirname( __FILE__ ), 'log', 'application.log' ),
|
21
|
+
:log_level => MiniLogger::DEBUG )
|
22
|
+
|
23
|
+
MiniLogger.debug( "#{big_process()}" ) if MiniLogger.debug?
|
19
24
|
|
25
|
+
== TODO
|
26
|
+
* ???
|
20
27
|
|
21
28
|
== License
|
22
29
|
|
File without changes
|
data/test/test_mini_logger.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mini_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Javier Juarez
|
@@ -23,8 +23,8 @@ extensions: []
|
|
23
23
|
extra_rdoc_files:
|
24
24
|
- README.rdoc
|
25
25
|
files:
|
26
|
-
- lib/mini_logger
|
27
|
-
- lib/
|
26
|
+
- lib/mini_logger.rb
|
27
|
+
- lib/version.rb
|
28
28
|
- test/test_mini_logger.rb
|
29
29
|
- README.rdoc
|
30
30
|
has_rdoc: true
|