mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add log api
This commit is contained in:
@@ -25,6 +25,14 @@ public class JakartaCommonsLoggingImpl implements com.alibaba.druid.support.logg
|
||||
private int errorCount;
|
||||
private int warnCount;
|
||||
private int infoCount;
|
||||
|
||||
/**
|
||||
* @since 0.2.1
|
||||
* @param log
|
||||
*/
|
||||
public JakartaCommonsLoggingImpl(Log log) {
|
||||
this.log = log;
|
||||
}
|
||||
|
||||
public JakartaCommonsLoggingImpl(String loggerName){
|
||||
log = LogFactory.getLog(loggerName);
|
||||
|
||||
@@ -27,6 +27,14 @@ public class Log4jImpl implements Log {
|
||||
private int errorCount;
|
||||
private int warnCount;
|
||||
private int infoCount;
|
||||
|
||||
/**
|
||||
* @since 0.2.21
|
||||
* @param log
|
||||
*/
|
||||
public Log4jImpl(Logger log) {
|
||||
this.log = log;
|
||||
}
|
||||
|
||||
public Log4jImpl(String loggerName){
|
||||
log = Logger.getLogger(loggerName);
|
||||
|
||||
Reference in New Issue
Block a user