Skip to content
/ timber Public
forked from glennsl/timber

Opinionated logging framework based on @dbuenzli/logs

License

Notifications You must be signed in to change notification settings

onivim/timber

 
 

Repository files navigation

timber

Opinionated logging framework based on @dbuenzli/logs

Screenshot

Features

  • Colorized output (except on Windows, because Windows)
  • Namespaces, filterable and colorized by hash
  • Delta timestamp showing time since previous message
  • Console and file reporter out-of-the-box
  • TRACE level
  • Very simple API

Example

Timber.App.enable();
Timber.App.setLevel(Timber.Level.debug);
Timber.App.setLogFile("test.log");

module Log = (val Timber.Log.withNamespace("Timber"));

Log.trace("This won't be logged");

Log.infof(m => m("Formatting and lazy evaluation %i", Random.int(100)));

Log.error("Something went horribly wrong!");

About

Opinionated logging framework based on @dbuenzli/logs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Reason 86.9%
  • C++ 9.4%
  • C 3.7%