Project

lex-log

0.0
No release in over 3 years
Low commit activity in last 3 years
A LegionIO Extension to log to STDOUT and to files in an async fashion
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

 Project Readme

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