https://github.com/optum/legion-logging
A wrapper gem for the LegionIO framework to handle logging requests for the application
https://github.com/optum/legion-logging
legionio logging ruby
Last synced: about 1 year ago
JSON representation
A wrapper gem for the LegionIO framework to handle logging requests for the application
- Host: GitHub
- URL: https://github.com/optum/legion-logging
- Owner: Optum
- License: apache-2.0
- Created: 2021-06-01T22:11:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T19:06:08.000Z (about 5 years ago)
- Last Synced: 2025-04-14T15:21:58.077Z (about 1 year ago)
- Topics: legionio, logging, ruby
- Language: Ruby
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Legion::Logging
=====
Legion::Logging is a ruby logging class that is used by the LegionIO framework. It gives all other gems and extensions a
single logging library to use for consistency.
Supported Ruby versions and implementations
------------------------------------------------
Legion::Json should work identically on:
* JRuby 9.2+
* Ruby 2.4+
Installation and Usage
------------------------
You can verify your installation using this piece of code:
```bash
gem install legion-logging
```
```ruby
require 'legion-logging'
Legion::Logging.setup(log_file: './legion.log', level: 'debug')
Legion::Logging.setup(level: 'info0') # defaults to stdout when no log_file specified
Legion::Logging.warn('warning a user')
Legion::Logging.info('hello')
```
Authors
----------
* [Matthew Iverson](https://github.com/Esity) - current maintainer