public class LoggerException extends Exception
Modifier and Type | Field and Description |
---|---|
private static Debug |
debug
Logger
|
static int |
ERROR
Log-Level Error
|
private int |
logLevel
Eingestelltes Log-Level
|
static int |
OTHER
Weder Error noch Warning Log-Level
|
private static long |
serialVersionUID |
static int |
WARNING
Log-Level Warning
|
Constructor and Description |
---|
LoggerException(LoggerException loggerException) |
LoggerException(String message,
int logLevel) |
LoggerException(String message,
Throwable cause,
int logLevel) |
LoggerException(Throwable cause,
int logLevel) |
Modifier and Type | Method and Description |
---|---|
int |
getLogLevel() |
void |
log()
Loggt die Exception gemäß dem Log-Level.
|
void |
log(String msg)
Gibt die Nachricht String mit dem gesetzten Log-Level aus.
|
static void |
log(String msg,
int logLevel)
Loggt eine Nachricht.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public static final int ERROR
public static final int WARNING
public static final int OTHER
private static final Debug debug
private int logLevel
public LoggerException(String message, int logLevel)
message
- FehlermeldunglogLevel
- Log-Level, mit dem der Fehler geloggt wird.public LoggerException(String message, Throwable cause, int logLevel)
message
- Fehlermeldungcause
- UrsachelogLevel
- Log-Level, mit dem der Fehler geloggt wird.public LoggerException(Throwable cause, int logLevel)
cause
- FehlerursachelogLevel
- Log-Level, mit dem der Fehler geloggt wird.public LoggerException(LoggerException loggerException)
loggerException
- Fehlermeldungpublic void log()
public void log(String msg)
msg
- Nachrichtpublic int getLogLevel()
public static void log(String msg, int logLevel)
msg
- NachrichtlogLevel
- Log-Level.