| Package | Description |
|---|---|
| com.github.drinkjava2.jlogs |
| Modifier and Type | Class and Description |
|---|---|
class |
ConsoleLog
ConsoleLog only output to console
|
class |
EmptyLog
EmptyLog is an empty implementation of Log
|
class |
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 |
| Modifier and Type | Method and Description |
|---|---|
static Log |
LogFactory.getLog(Class<?> clazz)
Find jlogs.properties configuration, if not found or jlogs.properties is
empty, use default ConsoleLog
|
Copyright © 2021. All rights reserved.