public interface Logger
Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_HIGH
Verbose logging.
|
static int |
LEVEL_LOW
Minimal logging.
|
static int |
LEVEL_MEDIUM
Typical logging (the default).
|
static int |
LEVEL_OFF
Logging disabled.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this Logger.
|
int |
getLogLevel()
Gets the logging level.
|
boolean |
isLogged(int level)
Gets whether calling
log with the specified logging
level would cause a message to be logged. |
void |
log(int level,
String prefix,
String message)
Logs the specified message.
|
void |
log(int level,
String prefix,
String message,
Throwable throwable)
Logs the specified message and throwable, as a single
log entry.
|
void |
log(int level,
String prefix,
Throwable throwable)
Logs the specified throwable.
|
void |
setLogLevel(int logLevel)
Sets the desired logging level.
|
static final int LEVEL_OFF
static final int LEVEL_LOW
static final int LEVEL_MEDIUM
static final int LEVEL_HIGH
void log(int level, String prefix, String message)
level
- the minimum logging level for the
message to be loggedprefix
- the message prefixmessage
- the messagevoid log(int level, String prefix, Throwable throwable)
level
- the minimum logging level for the
message to be loggedprefix
- the message prefixthrowable
- the throwablevoid log(int level, String prefix, String message, Throwable throwable)
level
- the minimum logging level for the
message to be loggedprefix
- the message prefixmessage
- the messagethrowable
- the throwableint getLogLevel() throws IfsException
IfsException
- if the operation failsvoid setLogLevel(int logLevel) throws IfsException
logLevel
- the desired logging levelIfsException
- if the operation failsboolean isLogged(int level)
log
with the specified logging
level would cause a message to be logged.level
- the logging levelvoid dispose()
Copyright © 2023. All rights reserved.