scribe-macros


License

License

MIT
Categories

Categories

Native Development Tools
GroupId

GroupId

com.outr
ArtifactId

ArtifactId

scribe-macros_native0.3_2.11
Last Version

Last Version

2.7.10
Release Date

Release Date

Type

Type

jar
Description

Description

scribe-macros
scribe-macros
Project URL

Project URL

https://github.com/outr/scribe
Project Organization

Project Organization

com.outr
Source Code Management

Source Code Management

https://github.com/outr/scribe

Download scribe-macros_native0.3_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.outr/scribe-macros_native0.3_2.11/ -->
<dependency>
    <groupId>com.outr</groupId>
    <artifactId>scribe-macros_native0.3_2.11</artifactId>
    <version>2.7.10</version>
</dependency>
// https://jarcasting.com/artifacts/com.outr/scribe-macros_native0.3_2.11/
implementation 'com.outr:scribe-macros_native0.3_2.11:2.7.10'
// https://jarcasting.com/artifacts/com.outr/scribe-macros_native0.3_2.11/
implementation ("com.outr:scribe-macros_native0.3_2.11:2.7.10")
'com.outr:scribe-macros_native0.3_2.11:jar:2.7.10'
<dependency org="com.outr" name="scribe-macros_native0.3_2.11" rev="2.7.10">
  <artifact name="scribe-macros_native0.3_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.outr', module='scribe-macros_native0.3_2.11', version='2.7.10')
)
libraryDependencies += "com.outr" % "scribe-macros_native0.3_2.11" % "2.7.10"
[com.outr/scribe-macros_native0.3_2.11 "2.7.10"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.scala-native : nativelib_native0.3_2.11 jar 0.3.9
org.scala-native : javalib_native0.3_2.11 jar 0.3.9
org.scala-native : auxlib_native0.3_2.11 jar 0.3.9
org.scala-native : scalalib_native0.3_2.11 jar 0.3.9
org.scala-lang : scala-reflect jar 2.11.12

test (1)

Group / Artifact Type Version
org.scala-native : test-interface_native0.3_2.11 jar 0.3.9

Project Modules

There are no modules declared in this project.

scribe

Build Status Codacy Badge Codacy Badge Gitter Maven Central Latest version Javadocs

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.

Availability

Scribe is available on the JVM, Scala.js, and ScalaNative with cross-compiling for Scala 2.11, 2.12, 2.13, and Dotty

Quick Start

For people that want to skip the explanations and see it action, this is the place to start!

Dependency Configuration

libraryDependencies += "com.outr" %% "scribe" % "3.2.0"

For Cross-Platform projects:

libraryDependencies += "com.outr" %%% "scribe" % "3.2.0"

Or, if you want interoperability with SLF4J (to allow better interoperability with existing libraries using other loggers):

libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.2.0"

Usage

scribe.info("Yes, it's that simple!")

Why Another Logging Framework?

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:

  1. No support for Scala.js
  2. No support for Scala Native
  3. Performance cost (Blog Post: http://www.matthicks.com/2018/02/scribe-2-fastest-jvm-logger-in-world.html)
  4. Additional dependencies
  5. Substantial cost logging method and line numbers
  6. Lack of programmatic configuration support

A few of the main features that Scribe offers (for a complete list):

  1. Performance is a critical consideration. We leverage Macros to handle optimization of everything possible at compile-time to avoid logging slowing down your production application. As far as we are aware, Scribe is the fastest logging framework on the JVM.
  2. Programmatic configuration. No need to be bound to configuration files to configure your logging. This means you can rely on any configuration framework or you can configure real-time changes to your logging in your production environment. This particularly comes in handy if you need to enable debug logging on something going wrong in production. No need to restart your server, simply provide a mechanism to modify the logging configuration in real-time.
  3. Clean logging. Macros allow us to introduce logging into a class via an import instead of a mix-in or unnecessary setup code.
  4. Zero cost class, method, and line number logging built-in. Never worry about your logger working up the stack to figure out the position of the logging statement at runtime. With Macros we determine that information at compile-time to avoid any runtime cost.
  5. Asynchronous logging support. Scribe's logger is very fast, but if real-time performance is critical, the asynchronous logging support completely removes logging impact from your application's thread impact.

Documentation

Advanced Topics

Optional Modules

Community

The best way to receive immediate feedback for any questions is via our Gitter channel

Acknowledgements

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.

com.outr

OUTR Technologies

Versions

Version
2.7.10
2.7.9
2.7.8
2.7.7
2.7.6
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.0