public static interface PersistitLogMessage.LogItem
configure(PersistitLogger, PersistitLevel, String)
method which
is called each time the logging framework is set up or changed.Modifier and Type | Method and Description |
---|---|
void |
configure(PersistitLogger logger,
PersistitLevel level,
String message)
Modify this
LogItem to use the supplied
PersistitLogger . |
PersistitLevel |
getLevel() |
boolean |
isEnabled() |
void |
log(Object... args)
Emit a log message, or do nothing if this
LogItem is
disabled. |
String |
logMessage(Object... args)
Construct a log message consisting of this LogItem's template
combined with values in the supplied argument list.
|
void |
logRecurring(int count,
long duration,
Object... args)
Emit a log message for a recurring event, or do nothing if this
LogItem is disabled. |
boolean isEnabled()
String logMessage(Object... args)
args
- array of argument values that will be substituted into the
log messagevoid log(Object... args)
LogItem
is
disabled.args
- array of argument values that will be substituted into the
log messagevoid logRecurring(int count, long duration, Object... args)
LogItem
is disabled.count
- number of occurrencesduration
- period of time in duration array of argument values that
will be substituted into the log messagePersistitLevel getLevel()
void configure(PersistitLogger logger, PersistitLevel level, String message)
LogItem
to use the supplied
PersistitLogger
. If the logger
enables logging
for messages having the supplied level
then configure
this LogItem
to emit log messages; else configure it to
do nothing, causing the JIT to compile away all instructions for
log(Object...)
method.logger
- The PersistitLogger
that emits log messageslevel
- The PersistitLevel
of this itemmessage
- A message template which forms the basis of the log
messageCopyright © 2025 Open Identity Platform Community. All rights reserved.