languages / ruby / usage / basic-logging

Ruby Usage - Basic Logging

Use the Timber::Logger just like you would the standard Ruby ::Logger.

How to use it

1
2
3
4
5
logger.debug("Debug message")
logger.info("Info message")
logger.warn("Warn message")
logger.error("Error message")
logger.fatal("Fatal message")

We encourage standard / traditional log messages for non-meaningful events. And because Timber augments your logs with metadata, you don't have to worry about making every log structured!

Questions?

Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up