edu.stanford.smi.protege.util
Class DefaultLogger
java.lang.Object
|
+--edu.stanford.smi.protege.util.DefaultLogger
- All Implemented Interfaces:
- Log.Logger
- public class DefaultLogger
- extends Object
- implements Log.Logger
Default Logger implementation. This implementation writes messages to System.err.
- Author:
- Ray Fergerson
Method Summary |
void |
enter(Object object,
String methodName,
Object[] arguments)
|
void |
error(String entry,
Object object,
String methodName,
Object[] arguments)
|
void |
exception(Throwable t,
Object object,
String methodName,
Object[] arguments)
|
void |
exit(Object object,
String methodName,
Object[] arguments)
|
int |
getErrorCount()
|
int |
getTraceCount()
|
int |
getWarningCount()
|
void |
resetCounts()
|
void |
setDisplayTrace(boolean b)
|
void |
setDisplayWarnings(boolean b)
|
void |
setDoPause(boolean b)
|
void |
setShowStack(boolean b)
|
void |
stack(String entry,
Object object,
String method,
Object[] arguments)
|
void |
trace(String entry,
Object object,
String methodName,
Object[] arguments)
|
void |
warning(String entry,
Object object,
String methodName,
Object[] arguments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLogger
public DefaultLogger()
DefaultLogger
public DefaultLogger(Writer writer)
enter
public void enter(Object object,
String methodName,
Object[] arguments)
- Specified by:
enter
in interface Log.Logger
error
public void error(String entry,
Object object,
String methodName,
Object[] arguments)
- Specified by:
error
in interface Log.Logger
exception
public void exception(Throwable t,
Object object,
String methodName,
Object[] arguments)
- Specified by:
exception
in interface Log.Logger
exit
public void exit(Object object,
String methodName,
Object[] arguments)
- Specified by:
exit
in interface Log.Logger
getErrorCount
public int getErrorCount()
- Specified by:
getErrorCount
in interface Log.Logger
getTraceCount
public int getTraceCount()
- Specified by:
getTraceCount
in interface Log.Logger
getWarningCount
public int getWarningCount()
- Specified by:
getWarningCount
in interface Log.Logger
resetCounts
public void resetCounts()
- Specified by:
resetCounts
in interface Log.Logger
setDisplayTrace
public void setDisplayTrace(boolean b)
- Specified by:
setDisplayTrace
in interface Log.Logger
setDisplayWarnings
public void setDisplayWarnings(boolean b)
- Specified by:
setDisplayWarnings
in interface Log.Logger
setDoPause
public void setDoPause(boolean b)
- Specified by:
setDoPause
in interface Log.Logger
setShowStack
public void setShowStack(boolean b)
- Specified by:
setShowStack
in interface Log.Logger
stack
public void stack(String entry,
Object object,
String method,
Object[] arguments)
- Specified by:
stack
in interface Log.Logger
trace
public void trace(String entry,
Object object,
String methodName,
Object[] arguments)
- Specified by:
trace
in interface Log.Logger
warning
public void warning(String entry,
Object object,
String methodName,
Object[] arguments)
- Specified by:
warning
in interface Log.Logger
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.