public final class LogEntryForwarder extends Object
Modifier and Type | Method | Description |
---|---|---|
static void |
forward(int depthOfStackTrace,
Level level,
Object obj) |
Forward a logging message.
|
static void |
forward(int depthOfStackTrace,
Level level,
String message,
Object... arguments) |
Forward a logging message.
|
static void |
forward(int depthOfStackTrace,
Level level,
Throwable exception,
String message,
Object... arguments) |
Forward a logging message.
|
static void |
forward(StackTraceElement stackTraceElement,
Level level,
Object obj) |
Forward a logging message.
|
static void |
forward(StackTraceElement stackTraceElement,
Level level,
String message,
Object... arguments) |
Forward a logging message.
|
static void |
forward(StackTraceElement stackTraceElement,
Level level,
Throwable exception,
String message,
Object... arguments) |
Forward a logging message.
|
public static void forward(int depthOfStackTrace, Level level, Object obj)
depthOfStackTrace
- Depth of (additional) stack trace (is needed to find the right stack trace element in a stack trace)level
- Severity levelobj
- The result of the toString()
method will be loggedpublic static void forward(int depthOfStackTrace, Level level, String message, Object... arguments)
depthOfStackTrace
- Depth of (additional) stack trace (is needed to find the right stack trace element in a stack trace)level
- Severity levelmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void forward(int depthOfStackTrace, Level level, Throwable exception, String message, Object... arguments)
depthOfStackTrace
- Depth of (additional) stack trace (is needed to find the right stack trace element in a stack trace)level
- Severity levelexception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void forward(StackTraceElement stackTraceElement, Level level, Object obj)
stackTraceElement
- Stack trace element for class, method and source informationlevel
- Severity levelobj
- The result of the toString()
method will be loggedpublic static void forward(StackTraceElement stackTraceElement, Level level, String message, Object... arguments)
stackTraceElement
- Stack trace element for class, method and source informationlevel
- Severity levelmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void forward(StackTraceElement stackTraceElement, Level level, Throwable exception, String message, Object... arguments)
stackTraceElement
- Stack trace element for class, method and source informationlevel
- Severity levelexception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messageCopyright © 2019. All rights reserved.