mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 17:26:14 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@461 84d0f5b1-2673-498c-a247-62c4ff18d310
32 lines
748 B
Java
32 lines
748 B
Java
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();
|
|
}
|