Skip to content

A wrapper gem for the LegionIO framework to handle logging requests for the application

License

Notifications You must be signed in to change notification settings

Optum/legion-logging

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:

gem install legion-logging
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

About

A wrapper gem for the LegionIO framework to handle logging requests for the application

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages