public interface PrologLogger
Logger
adapting the Java logger mechanism for use with the most
popular logger methods. This logger mechanism is accessible from
PrologProvider.getLogger()
or PrologEngine.getLogger()
This
logger interface have all traditional methods used to log messages at
different levels (trace, debug, info,warn,error).
The levels used for this logger interface are Level
constants present
in the table.
AbstractLogger
class there are many implementations for this
interface. Every final implementation class can extends from
AbstractLogger
.Modifier and Type | Field and Description |
---|---|
static String |
CLASS_CAST |
static String |
CLASS_NOT_FOUND |
static String |
DONT_WORRY |
static String |
ERROR_LOADING_BUILT_INS |
static String |
EXECUTION_ERROR |
static String |
FILE_NOT_DELETE |
static String |
FILE_NOT_FOUND |
static String |
ILLEGAL_ACCESS |
static String |
ILLEGAL_ARGUMENT |
static String |
INDICATOR_NOT_FOUND |
static String |
INSTANTIATION |
static String |
INTERRUPTED_ERROR |
static String |
INVOCATION_TARGET |
static String |
IO |
static String |
LINK |
static String |
NO_SUCH_FIELD |
static String |
NO_SUCH_METHOD |
static String |
NON_SOLUTION |
static String |
RUNTIME_ERROR |
static String |
SECURITY |
static String |
SQL_ERROR |
static String |
SYNTAX_ERROR |
static String |
UNKNOWN_HOST |
static String |
UNKNOWN_PREDICATE |
static String |
URI |
static String |
URL |
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 |
log(Object sender,
Level level,
Object message,
Throwable t)
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. |
static final String RUNTIME_ERROR
static final String FILE_NOT_FOUND
static final String CLASS_NOT_FOUND
static final String UNKNOWN_PREDICATE
static final String SYNTAX_ERROR
static final String NON_SOLUTION
static final String INDICATOR_NOT_FOUND
static final String IO
static final String ERROR_LOADING_BUILT_INS
static final String DONT_WORRY
static final String INTERRUPTED_ERROR
static final String EXECUTION_ERROR
static final String FILE_NOT_DELETE
static final String INSTANTIATION
static final String ILLEGAL_ACCESS
static final String NO_SUCH_METHOD
static final String SECURITY
static final String SQL_ERROR
static final String UNKNOWN_HOST
static final String ILLEGAL_ARGUMENT
static final String INVOCATION_TARGET
static final String NO_SUCH_FIELD
static final String CLASS_CAST
static final String URI
static final String URL
static final String LINK
void log(Object sender, Level level, Object message)
sender
- object that invoke the logger service.level
- log level.message
- message to be logged.void log(Object sender, Level level, Object message, Throwable t)
Throwable
argument used for log exceptions if is needed.sender
- object that invoke the logger service.level
- log level.message
- message to be logged.t
- argument used for log exceptions.void trace(Object sender, Object message)
Level.FINEST
level. Is a
shortcut to log(sender, Level.FINEST, message);
sender
- object that invoke the logger service.message
- message to be logged.void trace(Object sender, Object message, Throwable t)
Level.FINEST
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.FINEST, message, t);
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.void debug(Object sender, Object message)
Level.FINE
level. Is a
shortcut to log(sender, Level.FINE, message);
sender
- object that invoke the logger service.message
- message to be logged.void debug(Object sender, Object message, Throwable t)
Level.FINE
level. Append
a Throwable
argument used for log exceptions if is needed. Is a
shortcut to log(sender, Level.FINE, message, t);
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.void info(Object sender, Object message)
Level.INFO
level. Is a
shortcut to log(sender, Level.INFO, message);
sender
- object that invoke the logger service.message
- message to be logged.void info(Object sender, Object message, Throwable t)
Level.INFO
level. Append
a Throwable
argument used for log exceptions if is needed. Is a
shortcut to log(sender, Level.INFO, message, t);
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.void warn(Object sender, Object message)
Level.WARNING
level. Is a
shortcut to log(sender, Level.WARNING, message);
sender
- object that invoke the logger service.message
- message to be logged.void warn(Object sender, Object message, Throwable t)
Level.WARNING
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.WARNING, message, t);
sender
- object that invoke the logger service.message
- message to be logged.t
- argument used for log exceptions.void error(Object sender, Object message)
Level.SEVERE
level. Is a
shortcut to log(sender, Level.SEVERE, message);
sender
- object that invoke the logger service.message
- message to be logged.void error(Object sender, Object message, Throwable t)
Level.SEVERE
level.
Append a Throwable
argument used for log exceptions if is needed. Is
a shortcut to log(sender, Level.SEVERE, message, t);
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.