|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.util.Log
A utility class that prints trace messages of various sorts to a log. By default the "log" is the err console but it could be directed elsewhere.
The following code is an example of the use of Log.
class Foo { void bar(Object o) { ... Log.trace("my message", this, "bar", o); ... } void static baz(Object o1, String s1) { ... Log.trace("my message", Foo.class, "baz", o1, s1); ... } }
Nested Class Summary | |
static interface |
Log.Logger
Description of the Class |
Constructor Summary | |
Log()
|
Method Summary | |
static void |
enter(Object thisOrClass,
String methodName)
Make an entry into the log with the message that methodName
has been called (see the Log class example ). |
static void |
enter(Object thisOrClass,
String methodName,
Object arg1)
Make an entry into the log with the message that methodName
has been called and passed the listed argument (see the Log class example ). |
static void |
enter(Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Make an entry into the log with the message that methodName
has been called and passed the listed arguments (see the Log class example ). |
static void |
enter(Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Make an entry into the log with the message that methodName
has been called and passed the listed arguments (see the Log class example ). |
static void |
enter(Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Make an entry into the log with the message that methodName
has been called and passed the listed arguments (see the Log class example ). |
static void |
enter(Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Make an entry into the log with the message that methodName
has been called and passed the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName,
Object arg1)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
error(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Put a message into the log that an error with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName)
Put a message into the log that an unexpected exception was caught from inside of methodName (see the Log class
example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName,
Object arg1)
Put a message into the log that an unexpected exception was caught from inside of methodName which was called with the listed
arguments (see the Log class example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Put a message into the log that an unexpected exception was caught from inside of methodName which was called with the listed
arguments (see the Log class example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Put a message into the log that an unexpected exception was caught from inside of methodName which was called with the listed
arguments (see the Log class example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Put a message into the log that an unexpected exception was caught from inside of methodName which was called with the listed
arguments (see the Log class example ). |
static void |
exception(Throwable exception,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Put a message into the log that an unexpected exception was caught from inside of methodName which was called with the listed
arguments (see the Log class example ). |
static void |
exit(Object thisOrClass,
String methodName)
Make an entry into the log with the message that methodName
has returned (see the Log class example ). |
static int |
getErrorCount()
|
static int |
getTraceCount()
|
static int |
getWarningCount()
|
static void |
resetCount()
|
static void |
resetCounts()
|
static void |
setDisplayTrace(boolean b)
|
static void |
setDisplayWarnings(boolean b)
|
static void |
setDoPause(boolean b)
|
static void |
setLogger(Log.Logger logger)
|
static void |
setShowStack(boolean b)
|
static void |
stack(String description,
Object thisOrClass,
String methodName)
Put a stack dump and message "description" into the log with the additional information that the message is occuring from inside of methodName (see the Log class example ). |
static void |
stack(String description,
Object thisOrClass,
String methodName,
Object arg1)
Put a stack dump and message "description" into the log with the additional information that the message is occuring from inside of methodName which was called with the listed argument (see
the Log class example ). |
static void |
stack(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Put a stack dump and message "description" into the log with the additional information that the message is occuring from inside of methodName which was called with the listed arguments (see
the Log class example ). |
static void |
stack(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Put a stack dump and message "description" into the log with the additional information that the message is occuring from inside of methodName which was called with the listed arguments (see
the Log class example ). |
static void |
stack(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Put a stack dump and message "description" into the log with the additional information that the message is occuring from inside of methodName which was called with the listed arguments (see
the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
(see the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName,
Object arg1)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
which was called with the listed arguments (see the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
which was called with the listed arguments (see the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
which was called with the listed arguments (see the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
which was called with the listed arguments (see the Log class example ). |
static void |
trace(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Put a trace message "description" into the log with the additional information that the message is occuring from inside of methodName
which was called with the listed arguments (see the Log class example ). |
static void |
warning(String description,
Object thisOrClass,
String methodName)
Put a message into the log that a warning with the given description occurred from inside of methodName (see the Log
class example ). |
static void |
warning(String description,
Object thisOrClass,
String methodName,
Object arg1)
Put a message into the log that a warning with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
warning(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2)
Put a message into the log that a warning with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
warning(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3)
Put a message into the log that a warning with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
static void |
warning(String description,
Object thisOrClass,
String methodName,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Put a message into the log that a warning with the given description occurred from inside of methodName which was called with
the listed arguments (see the Log class example ). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Log()
Method Detail |
public static void enter(Object thisOrClass, String methodName)
methodName
has been called (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void enter(Object thisOrClass, String methodName, Object arg1)
methodName
has been called and passed the listed argument (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void enter(Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
has been called and passed the listed arguments (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void enter(Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
has been called and passed the listed arguments (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void enter(Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
has been called and passed the listed arguments (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterpublic static void enter(Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
methodName
has been called and passed the listed arguments (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterarg5
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName, Object arg1)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterpublic static void error(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterarg5
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName)
methodName
(see the Log class
example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName, Object arg1)
methodName
which was called with the listed
arguments (see the Log class example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
which was called with the listed
arguments (see the Log class example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
which was called with the listed
arguments (see the Log class example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
which was called with the listed
arguments (see the Log class example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterpublic static void exception(Throwable exception, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
methodName
which was called with the listed
arguments (see the Log class example
).
exception
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterarg5
- Description of Parameterpublic static void exit(Object thisOrClass, String methodName)
methodName
has returned (see the Log class example
).
thisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static int getErrorCount()
public static int getTraceCount()
public static int getWarningCount()
public static void resetCount()
public static void resetCounts()
public static void setDisplayTrace(boolean b)
public static void setDisplayWarnings(boolean b)
public static void setDoPause(boolean b)
public static void setLogger(Log.Logger logger)
public static void setShowStack(boolean b)
public static void stack(String description, Object thisOrClass, String methodName)
methodName
(see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void stack(String description, Object thisOrClass, String methodName, Object arg1)
methodName
which was called with the listed argument (see
the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void stack(String description, Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
which was called with the listed arguments (see
the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void stack(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
which was called with the listed arguments (see
the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void stack(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
which was called with the listed arguments (see
the Log class example
).
public static void trace(String description, Object thisOrClass, String methodName)
methodName
(see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void trace(String description, Object thisOrClass, String methodName, Object arg1)
methodName
which was called with the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void trace(String description, Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
which was called with the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void trace(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
which was called with the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void trace(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
which was called with the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterpublic static void trace(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
methodName
which was called with the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameterarg5
- Description of Parameterpublic static void warning(String description, Object thisOrClass, String methodName)
methodName
(see the Log
class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterpublic static void warning(String description, Object thisOrClass, String methodName, Object arg1)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterpublic static void warning(String description, Object thisOrClass, String methodName, Object arg1, Object arg2)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterpublic static void warning(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterpublic static void warning(String description, Object thisOrClass, String methodName, Object arg1, Object arg2, Object arg3, Object arg4)
methodName
which was called with
the listed arguments (see the Log class example
).
description
- Description of ParameterthisOrClass
- Description of ParametermethodName
- Description of Parameterarg1
- Description of Parameterarg2
- Description of Parameterarg3
- Description of Parameterarg4
- Description of Parameter
|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |