{"repo":"iloveitaly/simple_structured_logger","free":true,"listed":false,"github":"https://github.com/iloveitaly/simple_structured_logger","clone":"git clone https://github.com/iloveitaly/simple_structured_logger.git","description":"An incredibly simple, very opinionated, structured logging library for ruby","language":"Ruby","stars":18,"topics":["logging","ruby","ruby-gem","structured-logging","rails"],"license":"MIT","category":"analytics","readme_excerpt":"SimpleStructuredLogger Dead-simple structured logging in ruby with a dead-simple codebase. No dependencies, everything logs to stdout, and simple hooks to customize. That's it. Usage You can use this logger anywhere. Class methods, instance methods, use it as a logger for libraries, etc. Some examples: Want to change the log level quickly? Without modifying source? Design Goals Extremely simple codebase that's easy to read and override Structured logging that reads nicely and is easy to filter using grep or something like Papertrail Ability to easily set context, and expand context with user-configurable hook Ability to easily add structured log pre-processing. I want to be able to pass in an object specific to my application and for the relevant important keys to be expanded automatically. Rails.logger = SimpleStructuredLogger.new(STDOUT) Not designed around massive systems or scale: no JSON logging, multiple log destinations, and other fanciness. Don't build in fancy pre-processing for errors or other common ruby objects Opinionated Devops Setup Errors are tracked using Rollbar, Airbrake, Sentry, etc. Log to STDOUT Pipe STDOUT to PaperTrail, Loggly, etc Great for Heroku or dokku/docker hosted system Alternatives https://github.com/jordansissel/ruby-cabin https://github.com/asenchi/scrolls https://github.com/stripe/chalk-log https://github.com/nishidayuya/structured logger https://github.com/rocketjob/semantic logger Related https://github.com/roidrage/lograge Why is structu","default_branch":null,"files":null,"tree":[],"storefront":"/r/iloveitaly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iloveitaly/simple_structured_logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}