25 lines
811 B
Java
25 lines
811 B
Java
package org.apache.velocity.runtime.log;
|
|
|
|
import org.apache.velocity.runtime.RuntimeServices;
|
|
|
|
public interface LogChute {
|
|
public static final int DEBUG_ID = 0;
|
|
public static final String DEBUG_PREFIX = " [debug] ";
|
|
public static final int ERROR_ID = 3;
|
|
public static final String ERROR_PREFIX = " [error] ";
|
|
public static final int INFO_ID = 1;
|
|
public static final String INFO_PREFIX = " [info] ";
|
|
public static final int TRACE_ID = -1;
|
|
public static final String TRACE_PREFIX = " [trace] ";
|
|
public static final int WARN_ID = 2;
|
|
public static final String WARN_PREFIX = " [warn] ";
|
|
|
|
void init(RuntimeServices runtimeServices) throws Exception;
|
|
|
|
boolean isLevelEnabled(int i);
|
|
|
|
void log(int i, String str);
|
|
|
|
void log(int i, String str, Throwable th);
|
|
}
|