mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-20 10:16:13 +10:00
[유치수] [NOBTS] refactoring
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@461 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.profiler.logging;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
public abstract class Logger {
|
||||
|
||||
protected final String name;
|
||||
|
||||
protected final DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
||||
|
||||
public Logger(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static Logger getLogger(Class<?> clazz) {
|
||||
return new DefaultLogger(clazz.getName());
|
||||
}
|
||||
|
||||
public abstract void info(String message, Object... args);
|
||||
|
||||
public abstract void debug(String message, Object... args);
|
||||
|
||||
public abstract void warn(String message, Object... args);
|
||||
|
||||
public abstract void error(String message, Object... args);
|
||||
|
||||
public abstract void fatal(String message, Object... args);
|
||||
|
||||
public abstract boolean isDebugEnabled();
|
||||
}
|
||||
Reference in New Issue
Block a user