Sonatype Nexus (Releases) Sonatype Nexus (Snapshots) Actions Status License

Source code file name and line number aware logging

libraryDependencies += "com.thing2x" %% "smqd-lib-logging" % "1.0.0-SNAPSHOT"
import com.thing2x.smqd.logging.LoggingBase

class MacroTest extends LoggingBase {
  logger.info("Hello World!")
}

The log message will include file name and line number automatically, This information is obtained by scala macro during compile time, runtime performance is not affect.

10:27:07.153 INFO  com.example.MacroTest | MacroTest.scala 4 | Hello World!