lite_logger 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +29 -24
- data/lib/lite_logger/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ece63af71c4a5c828a54550a22474e0306c7072abadde05b9e1eab86202ee4f7
|
4
|
+
data.tar.gz: 3cddc3249be5cd6aff1d2451b2466d9adb29f8ed80693e9fc3334ae1eefc824c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25e87beb53112c98c5186f3365b1909d46e3b1b43f0ff7bb887b8c3b52ba19fe63bb4935412cb1e4c11d5716f45fe40c57314cf63a8a10e60eae88c2a2e76050
|
7
|
+
data.tar.gz: bd16d94aa16225859cb211819c1ee0c45f5632e741b904e10c3fde111261dc2bb8a0505b03f2e17dc1e43863d57e8a3227caefde821ff49e18c4756fd683e99a
|
data/CHANGELOG.md
CHANGED
@@ -8,3 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
## [0.1.0] - 2024-05-24
|
9
9
|
|
10
10
|
- Initial release
|
11
|
+
|
12
|
+
## [0.1.1] - 2024-05-24
|
13
|
+
|
14
|
+
- Added Version Badge to README.md
|
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.
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
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
|
+
|
5
|
+
## Status
|
6
|
+
|
7
|
+
[![Gem Version](https://badge.fury.io/rb/lite_logger.svg)](https://badge.fury.io/rb/lite_logger)
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -10,13 +14,13 @@ Add this line to your application's Gemfile:
|
|
10
14
|
gem 'lite_logger'
|
11
15
|
```
|
12
16
|
|
13
|
-
And then
|
17
|
+
And then run:
|
14
18
|
|
15
19
|
```bash
|
16
20
|
bundle install
|
17
21
|
```
|
18
22
|
|
19
|
-
Or install it
|
23
|
+
Or install it manually with:
|
20
24
|
|
21
25
|
```bash
|
22
26
|
gem install lite_logger
|
@@ -24,36 +28,37 @@ gem install lite_logger
|
|
24
28
|
|
25
29
|
## Usage
|
26
30
|
|
27
|
-
###
|
31
|
+
### Example
|
28
32
|
|
29
|
-
|
33
|
+
In a Ruby class:
|
30
34
|
|
31
35
|
```ruby
|
32
|
-
#
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
37
54
|
end
|
38
55
|
```
|
39
56
|
|
40
|
-
### Logging
|
41
|
-
|
42
|
-
Use the `LiteLogger` module to log messages in your application:
|
43
|
-
|
44
|
-
```ruby
|
45
|
-
LiteLogger.debug('This is a debug message')
|
46
|
-
LiteLogger.info('This is an info message')
|
47
|
-
LiteLogger.warn('This is a warning message')
|
48
|
-
LiteLogger.error('This is an error message')
|
49
|
-
LiteLogger.fatal('This is a fatal message')
|
50
|
-
```
|
51
|
-
|
52
57
|
## Contributing
|
53
58
|
|
54
|
-
Bug reports and pull requests are welcome
|
59
|
+
Bug reports and pull requests are welcome: <https://github.com/dmferrari/lite_logger/pulls>.
|
55
60
|
|
56
61
|
## License
|
57
62
|
|
58
63
|
License
|
59
|
-
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
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Ferrari
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -80,7 +80,7 @@ metadata:
|
|
80
80
|
source_code_uri: https://github.com/dmferrari/lite_logger
|
81
81
|
changelog_uri: https://github.com/dmferrari/lite_logger/blob/main/CHANGELOG.md
|
82
82
|
rubygems_mfa_required: 'true'
|
83
|
-
post_install_message:
|
83
|
+
post_install_message:
|
84
84
|
rdoc_options: []
|
85
85
|
require_paths:
|
86
86
|
- lib
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubygems_version: 3.5.9
|
99
|
-
signing_key:
|
99
|
+
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: A lightweight logging solution for Ruby on Rails applications.
|
102
102
|
test_files: []
|