easy_logging 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -3
- data/easy_logging.gemspec +1 -1
- data/lib/easy_logging/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1e31f8b6903552ad3609fcc9c3548d7a7119e15
|
4
|
+
data.tar.gz: 39456af89e6b82d9d4387d1c1e2e4b1bf2462be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2c5598b42550ad4213026ce488262b74bd701058b7168b39e2ec308fab8e599d764ee145eae0c9dceb55b01c7c6ce6e70279de8d1eef239bc0ce6994fca2e29
|
7
|
+
data.tar.gz: 7d9246e6b9d3592f8c2bed57c642fe3b7800c0e77822cc3cf7884897dfe225dd9afb01de9652c80be1fa0eec07c0671b20ae8656534951aa3c2abc136ad896ad
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# EasyLogging
|
2
2
|
|
3
|
-
#### Ruby utility that lets you include logging
|
3
|
+
#### Ruby utility that lets you include logging anywhere easily, without redundancy.
|
4
4
|
|
5
5
|
| Branch | Status |
|
6
6
|
| ------ | ------ |
|
@@ -9,10 +9,29 @@
|
|
9
9
|
|
10
10
|
## Features
|
11
11
|
|
12
|
-
- Adds logging functionality
|
12
|
+
- Adds logging functionality anywhere with one, short, self-descriptive command
|
13
13
|
- Logger works in both class and instance methods
|
14
14
|
- Logger is specific to class and contains class name
|
15
15
|
|
16
|
+
### Logger configuration
|
17
|
+
|
18
|
+
- Logs to STDOUT
|
19
|
+
- Contains classname
|
20
|
+
|
21
|
+
Excerpt:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
def self.configure_logger_for(classname)
|
25
|
+
logger = Logger.new(STDOUT)
|
26
|
+
logger.progname = classname
|
27
|
+
logger
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
### Possible improvements
|
32
|
+
|
33
|
+
- Make logger configurable (especially the output)
|
34
|
+
|
16
35
|
## Installation
|
17
36
|
|
18
37
|
Add this line to your application's Gemfile:
|
@@ -31,7 +50,7 @@ Or install it yourself as:
|
|
31
50
|
|
32
51
|
## Usage
|
33
52
|
|
34
|
-
Add `include EasyLogging` to any class you want to extend with logging functionality.
|
53
|
+
Add `include EasyLogging` to any context (e.g. a class) you want to extend with logging functionality.
|
35
54
|
|
36
55
|
```ruby
|
37
56
|
require 'easy_logging'
|
data/easy_logging.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["thisismydesign"]
|
10
10
|
spec.email = ["thisismydesign@users.noreply.github.com"]
|
11
11
|
|
12
|
-
spec.summary = "Include logging
|
12
|
+
spec.summary = "Include logging anywhere easily, without redundancy."
|
13
13
|
spec.homepage = "https://github.com/thisismydesign/easy_logging"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/lib/easy_logging/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thisismydesign
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,5 +107,5 @@ rubyforge_project:
|
|
107
107
|
rubygems_version: 2.5.2
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
|
-
summary: Include logging
|
110
|
+
summary: Include logging anywhere easily, without redundancy.
|
111
111
|
test_files: []
|