public abstract class AbstractLogger extends Object implements PrologLogger
PrologLogger
interface.CLASS_CAST, CLASS_NOT_FOUND, DONT_WORRY, ERROR_LOADING_BUILT_INS, EXECUTION_ERROR, FILE_NOT_DELETE, FILE_NOT_FOUND, ILLEGAL_ACCESS, ILLEGAL_ARGUMENT, INDICATOR_NOT_FOUND, INSTANTIATION, INTERRUPTED_ERROR, INVOCATION_TARGET, IO, LINK, NO_SUCH_FIELD, NO_SUCH_METHOD, NON_SOLUTION, RUNTIME_ERROR, SECURITY, SQL_ERROR, SYNTAX_ERROR, UNKNOWN_HOST, UNKNOWN_PREDICATE, URI, URL
Constructor and Description |
---|
AbstractLogger() |
Modifier and Type | Method and Description |
---|---|
void |
debug(Object sender,
Object message)
Log a message from a given object sender at
Level.FINE level. |
void |
debug(Object sender,
Object message,
Throwable t)
Log a message from a given object sender at
Level.FINE level. |
void |
error(Object sender,
Object message)
Log a message from a given object sender at
Level.SEVERE level. |
void |
error(Object sender,
Object message,
Throwable t)
Log a message from a given object sender at
Level.SEVERE level. |
void |
info(Object sender,
Object message)
Log a message from a given object sender at
Level.INFO level. |
void |
info(Object sender,
Object message,
Throwable t)
Log a message from a given object sender at
Level.INFO level. |
void |
log(Object sender,
Level level,
Object message)
Log a message from a given object sender at the given level.
|
void |
trace(Object sender,
Object message)
Log a message from a given object sender at
Level.FINEST level. |
void |
trace(Object sender,
Object message,
Throwable t)
Log a message from a given object sender at
Level.FINEST level. |
void |
warn(Object sender,
Object message)
Log a message from a given object sender at
Level.WARNING level. |
void |
warn(Object sender,
Object message,
Throwable t)
Log a message from a given object sender at
Level.WARNING level. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
log
public final void log(Object sender, Level level, Object message)
PrologLogger
log
in interface PrologLogger
sender
- object that invoke the logger service.level
- log level.message
- message to be logged.public final void trace(Object sender, Object message)
PrologLogger
Level.FINEST
level. Is a
shortcut to log(sender, Level.FINEST, message);
trace
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.public final void trace(Object sender, Object message, Throwable t)
PrologLogger
Level.FINEST
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.FINEST, message, t);
trace
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.public final void debug(Object sender, Object message)
PrologLogger
Level.FINE
level. Is a
shortcut to log(sender, Level.FINE, message);
debug
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.public final void debug(Object sender, Object message, Throwable t)
PrologLogger
Level.FINE
level. Append
a Throwable
argument used for log exceptions if is needed. Is a
shortcut to log(sender, Level.FINE, message, t);
debug
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.public final void info(Object sender, Object message)
PrologLogger
Level.INFO
level. Is a
shortcut to log(sender, Level.INFO, message);
info
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.public final void info(Object sender, Object message, Throwable t)
PrologLogger
Level.INFO
level. Append
a Throwable
argument used for log exceptions if is needed. Is a
shortcut to log(sender, Level.INFO, message, t);
info
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.public final void warn(Object sender, Object message)
PrologLogger
Level.WARNING
level. Is a
shortcut to log(sender, Level.WARNING, message);
warn
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.public final void warn(Object sender, Object message, Throwable t)
PrologLogger
Level.WARNING
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.WARNING, message, t);
warn
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.public final void error(Object sender, Object message)
PrologLogger
Level.SEVERE
level. Is a
shortcut to log(sender, Level.SEVERE, message);
error
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.public final void error(Object sender, Object message, Throwable t)
PrologLogger
Level.SEVERE
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.SEVERE, message, t);
error
in interface PrologLogger
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.Copyright © 2020–2024 Prolobjectlink Project. All rights reserved.