| Interface | Description |
|---|---|
| Log |
JLog used for inside of jSqlBox project, if a "jlogs.properties" file if
found on class root folder (main/resources), will try load the designated
JLog implementation, otherwise use default ConsoleLog as logger
An example of "jlogs.properties": log=com.github.drinkjava2.jlogs.SimpleSLF4JLog Another full example of using SLF4j+LogBack in production environment please see jsqlbox-jbooox demo project |
| Class | Description |
|---|---|
| ConsoleLog |
ConsoleLog only output to console
|
| EmptyLog |
EmptyLog is an empty implementation of Log
|
| LogFactory |
This LogFactory is designed for get a jLog implement used inside of jSqlBox
project.
|
| SimpleSLF4JLog |
SimpleSLF4JLog use SLF4J Logger, to use it, need put a file
“jlogs.properties” in main/resources or test/resources folder with below
line:
log=com.github.drinkjava2.jlogs.SLF4JLog And of cause, related SLF4J dependencies or logback-classic dependency which depends on SLF4J need added in pom.xml Note: this SimpleSLF4JLog is based on method reflection, not recommended to use in envirements which effectiveness is critical, for that a non-reflection logger needed, please see the example SLF4JLog.java in jsqlbox-jbooox project |
Copyright © 2021. All rights reserved.