Skip to content

LegionIO/lex-log

lex-log

Async logging extension for LegionIO. Routes log messages through the message bus to write to STDOUT or a file.

Installation

gem install lex-log

Usage

Dispatch log messages via the Output runner:

Write to stdout:

Legion::Ingress.run('lex_log.output.to_stdout', message: 'Hello world', level: 'info')

Write to a file:

Legion::Ingress.run('lex_log.output.to_file', location: '/var/log/myapp.log', message: 'Event occurred', level: 'warn')

Log Levels

Accepted values for level:: debug, info, warn, error, fatal, unknown. Defaults to info.

Requirements

  • Ruby >= 3.4
  • LegionIO framework
  • legion-logging

License

MIT

About

A LegionIO Extension to log to STDOUT and to files in an async fashion

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors