public class LogMonitor extends Object implements LogListenerEx, OntologyListener
LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_TRACE, LOG_LEVEL_WARN
Constructor and Description |
---|
LogMonitor() |
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent() |
String |
getTitle() |
void |
log(int logLevel,
String module,
String pkg,
String cls,
String method,
Object[] msgPart,
Throwable t)
Log a new message.
|
void |
ontologyAdded(String ontURI)
Notification when a new ontology is added.
|
void |
ontologyRemoved(String ontURI)
Notification when an existing ontology is removed.
|
void |
stop() |
public void log(int logLevel, String module, String pkg, String cls, String method, Object[] msgPart, Throwable t)
LogListener
log
in interface LogListener
logLevel
- the log level (trace, debug, info, warn, or error)module
- the name of the module that contains the class that intends to
generate the log messagepkg
- the name of the package that contains the class that intends
to generate the log messagecls
- the name of the class that intends to generate the log messagemethod
- The name of the method in the above Java class that intends to
generate the log messagemsgPart
- An array of strings and other objects that should be
concatenated using String.valueOf(Object)
in
order to construct the log messaget
- An optional Throwable
object like an
exception that might have caused the log requestpublic JComponent getComponent()
getComponent
in interface LogListenerEx
public String getTitle()
getTitle
in interface LogListenerEx
public void stop()
stop
in interface LogListenerEx
public void ontologyAdded(String ontURI)
OntologyListener
ontologyAdded
in interface OntologyListener
ontURI
- the URI of the new ontology.public void ontologyRemoved(String ontURI)
OntologyListener
ontologyRemoved
in interface OntologyListener
ontURI
- the URI of the ontology.Copyright © 2018 universAAL Consortium. All rights reserved.