| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | entry()
Overrides org. Implements org. Logs entry to a method. |
| public void | entry(final Object...
The parameters to the method. params)Overrides org. Implements org. Logs entry to a method along with its parameters (consider using one of the For example:
public void doSomething(String foo, int bar) {
LOGGER.entry(foo, bar);
// do something
}
|
| public void | exit()
Overrides org. Implements org. Logs exit from a method. |
| public <R> R | exit(final R
The result being returned from the method call. result)Overrides org. Implements org. Logs exiting from a method with the result. |
| public void | log(final Level
the logging level level, final String the message to log. message, final Throwable the t)Throwable to log, including its stack trace.Overrides org. Implements org. Logs a message at the given level including the stack trace of the |
| public void | log(final Level
the logging level level, final String the message to log; the format depends on the message factory. message, final Object... parameters to the message. params)Overrides org. Implements org. Logs a message with parameters at the given level. |
| public void | log(final Level
the logging level level, final String the message string to log. message)Overrides org. Implements org. Logs a message object with the given level. |
| public <T extends Throwable> T | throwing(final T
The Throwable. t)Overrides org. Implements org. |
| FQCN | back to summary |
|---|---|
| private static final String FQCN | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| WrappedLogger | back to summary |
|---|---|
| pack-priv WrappedLogger(final ExtendedLogger logger) | |
| entry | back to summary |
|---|---|
| public void entry() Overrides org. Implements org. Doc from org. Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.
| |
| entry | back to summary |
|---|---|
| public void entry(final Object... params) Overrides org. Implements org. Doc from org. Logs entry to a method along with its parameters (consider using one of the For example:
public void doSomething(String foo, int bar) {
LOGGER.entry(foo, bar);
// do something
}
The use of methods such as this are more effective when combined with aspect-oriented programming or other bytecode manipulation tools. It can be rather tedious (and messy) to use this type of method manually. | |
| exit | back to summary |
|---|---|
| public void exit() Overrides org. Implements org. Doc from org. Logs exit from a method. Used for methods that do not return anything.
| |
| exit | back to summary |
|---|---|
| public <R> R exit(final R result) Overrides org. Implements org. Doc from org. Logs exiting from a method with the result. This may be coded as: return LOGGER.exit(myResult);
| |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message, final Throwable t) Overrides org. Implements org. Doc from org. Logs a message at the given level including the stack trace of the | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message, final Object... params) Overrides org. Implements org. Doc from org. Logs a message with parameters at the given level. | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message) Overrides org. Implements org. Doc from org. Logs a message object with the given level. | |
| throwing | back to summary |
|---|---|
| public <T extends Throwable> T throwing(final T t) Overrides org. Implements org. Doc from org. Logs a throw logger.throwing(myException);
| |