Skip to content

smqd/smqd-lib-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages