lite_logger 0.1.1 → 0.1.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +25 -24
- data/lib/lite_logger/version.rb +1 -1
- data/log/.keep +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3639aaac4fad29c97b34eb8f2d4047813987916158aac137374463b56c0ff8bd
|
4
|
+
data.tar.gz: 05c4b86395e963cb077765151609df0af211bb94f1eaeb18e461a25ddd648b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc69ce43bb48267ee1868a6a5e0cc7b1316765936135702e88b722e86a7cd8bfc18a0531fa0b22ea342151ac650c631faef35475123262cc56695b4b9430134e
|
7
|
+
data.tar.gz: 2c7e6657eb2069baac8f088a9a25bcc03f946234f1342d1a8cb0e789eaa26e72a4bccd14cf599454f7684ef2c13a9d5b2a8625b6be01e9954e810abdc35e0029
|
data/CHANGELOG.md
CHANGED
@@ -13,3 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
- Added Version Badge to README.md
|
15
15
|
- Updated .gitignore file to avoid pushing .gem files
|
16
|
+
|
17
|
+
## [0.1.2] - 2024-05-29
|
18
|
+
|
19
|
+
- Updated README.md with installation instructions and usage example.
|
20
|
+
- Updated .gitignore file to avoid pushing development support files.
|
21
|
+
|
22
|
+
## [0.1.3] - 2024-06-12
|
23
|
+
|
24
|
+
- Added missing log/ directory that was causing the specs to fail.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# LiteLogger
|
2
2
|
|
3
|
-
LiteLogger is a lightweight logging solution for Ruby
|
3
|
+
LiteLogger is a lightweight logging solution for Ruby applications, providing customizable log levels, formats, and destinations.
|
4
4
|
|
5
5
|
## Status
|
6
6
|
|
@@ -14,13 +14,13 @@ Add this line to your application's Gemfile:
|
|
14
14
|
gem 'lite_logger'
|
15
15
|
```
|
16
16
|
|
17
|
-
And then
|
17
|
+
And then run:
|
18
18
|
|
19
19
|
```bash
|
20
20
|
bundle install
|
21
21
|
```
|
22
22
|
|
23
|
-
Or install it
|
23
|
+
Or install it manually with:
|
24
24
|
|
25
25
|
```bash
|
26
26
|
gem install lite_logger
|
@@ -28,36 +28,37 @@ gem install lite_logger
|
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
|
-
###
|
31
|
+
### Example
|
32
32
|
|
33
|
-
|
33
|
+
In a Ruby class:
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
#
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
# Require the gem
|
37
|
+
require 'lite_logger'
|
38
|
+
|
39
|
+
class MyClass
|
40
|
+
def initialize
|
41
|
+
# Initialize the logger
|
42
|
+
@logger = LiteLogger.new
|
43
|
+
end
|
44
|
+
|
45
|
+
def run
|
46
|
+
@logger.debug('This is a debug message')
|
47
|
+
@logger.info('This is an info message')
|
48
|
+
@logger.warn('This is a warning message')
|
49
|
+
@logger.error('This is an error message')
|
50
|
+
@logger.fatal('This is a fatal message')
|
51
|
+
|
52
|
+
# Method logic here
|
53
|
+
end
|
41
54
|
end
|
42
55
|
```
|
43
56
|
|
44
|
-
### Logging
|
45
|
-
|
46
|
-
Use the `LiteLogger` module to log messages in your application:
|
47
|
-
|
48
|
-
```ruby
|
49
|
-
LiteLogger.debug('This is a debug message')
|
50
|
-
LiteLogger.info('This is an info message')
|
51
|
-
LiteLogger.warn('This is a warning message')
|
52
|
-
LiteLogger.error('This is an error message')
|
53
|
-
LiteLogger.fatal('This is a fatal message')
|
54
|
-
```
|
55
|
-
|
56
57
|
## Contributing
|
57
58
|
|
58
|
-
Bug reports and pull requests are welcome
|
59
|
+
Bug reports and pull requests are welcome: <https://github.com/dmferrari/lite_logger/pulls>.
|
59
60
|
|
60
61
|
## License
|
61
62
|
|
62
63
|
License
|
63
|
-
This gem is available as open-source under the terms of the MIT License (see the LICENSE file in the project root for details).
|
64
|
+
This little gem is available as open-source under the terms of the MIT License (see the LICENSE file in the project root for details).
|
data/lib/lite_logger/version.rb
CHANGED
data/log/.keep
ADDED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Ferrari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/lite_logger.rb
|
72
72
|
- lib/lite_logger/logger.rb
|
73
73
|
- lib/lite_logger/version.rb
|
74
|
+
- log/.keep
|
74
75
|
- sig/lite_logger.rbs
|
75
76
|
homepage: https://github.com/dmferrari/lite_logger
|
76
77
|
licenses:
|
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
96
|
- !ruby/object:Gem::Version
|
96
97
|
version: '0'
|
97
98
|
requirements: []
|
98
|
-
rubygems_version: 3.5.
|
99
|
+
rubygems_version: 3.5.3
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: A lightweight logging solution for Ruby on Rails applications.
|