Methods Summary |
---|
protected java.lang.String | getLocationInfo(java.lang.String category)
String stackTrace = stackTraceToString(new Throwable());
String line = parseLine(stackTrace, category);
return line;
|
public static org.apache.log4j.lf5.LogLevel | getSevereLevel()
return severeLevel;
|
public boolean | isSevereLevel()
if (severeLevel == null) return false;
return severeLevel.equals(getLevel());
|
protected java.lang.String | parseLine(java.lang.String trace, java.lang.String category)
int index = trace.indexOf(category);
if (index == -1) return null;
trace = trace.substring(index);
trace = trace.substring(0, trace.indexOf(")") + 1);
return trace;
|
public void | setCategory(java.lang.String category)
super.setCategory(category);
super.setLocation(getLocationInfo(category));
|
public static void | setSevereLevel(org.apache.log4j.lf5.LogLevel level)
severeLevel = level;
|
protected java.lang.String | stackTraceToString(java.lang.Throwable t)
String s = null;
synchronized (sw) {
t.printStackTrace(pw);
s = sw.toString();
sw.getBuffer().setLength(0);
}
return s;
|