The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.
Scribe is a completely different way of thinking about logging. Instead of wrapping around existing logging frameworks and bearing their performance and design flaws, Scribe is built from the ground up to provide fast and effective logging in Scala, Scala.js, and Scala Native without the need of configuration files or additional dependencies. All management of logging can be handled programmatically (of course, classic logging configuration can be utilized as well if desired) in Scala itself, giving the developer the freedom to use whatever configuration framework, if any, they should choose to use.
Scribe is available on the JVM, Scala.js, and ScalaNative with cross-compiling for Scala 2.12, 2.13, and 3
For people that want to skip the explanations and see it action, this is the place to start!
libraryDependencies += "com.outr" %% "scribe" % "3.13.4"
For Cross-Platform projects (JVM, JS, and/or Native):
libraryDependencies += "com.outr" %%% "scribe" % "3.13.4"
Or, if you want interoperability with SLF4J (to allow better interoperability with existing libraries using other loggers):
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.13.4"
scribe.info("Yes, it's that simple!")
Using the default logger in Scribe supports auto-line wrapping, but in SBT, the [info]
prefixes cause that to get
messed up. It's recommended to set:
outputStrategy := Some(StdoutOutput)
This will disable the [info]
and [error]
prefixes so logging looks correct when running your application within SBT.
Yes, we know there are too many Java logging frameworks to count, and a large number of decent logging frameworks in Scala, so why did we write yet another logging framework? Nearly every Scala logging framework is mostly just a wrapper around Java logging frameworks (usually SLF4J, Log4J, or Logback). This comes with a few problems:
A few of the main features that Scribe offers (for a complete list):
Check out the wiki for complete documentation
The best way to receive immediate feedback for any questions is via our Gitter channel
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.