link start!
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.velocity.runtime.log;
|
||||
|
||||
import org.apache.velocity.runtime.RuntimeServices;
|
||||
|
||||
public interface LogSystem {
|
||||
public static final int DEBUG_ID = 0;
|
||||
public static final boolean DEBUG_ON = true;
|
||||
public static final int ERROR_ID = 3;
|
||||
public static final int INFO_ID = 1;
|
||||
public static final int WARN_ID = 2;
|
||||
|
||||
void init(RuntimeServices runtimeServices) throws Exception;
|
||||
|
||||
void logVelocityMessage(int i, String str);
|
||||
}
|
||||
Reference in New Issue
Block a user