| Modifier and Type | Class and Description |
|---|---|
static class |
StdLogger.Level |
| Constructor and Description |
|---|
StdLogger(StdLogger.Level level)
Creates the
StdLogger with a given log StdLogger.Level. |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.Throwable t,
java.lang.String errorFormat,
java.lang.Object... args)
Prints an error message.
|
StdLogger.Level |
getLevel()
Returns the logger's log
StdLogger.Level. |
void |
info(java.lang.String msgFormat,
java.lang.Object... args)
Prints an info message.
|
void |
verbose(java.lang.String msgFormat,
java.lang.Object... args)
Prints a verbose message.
|
void |
warning(java.lang.String warningFormat,
java.lang.Object... args)
Prints a warning message.
|
public StdLogger(@NonNull
StdLogger.Level level)
StdLogger with a given log StdLogger.Level.level - the log Level.public StdLogger.Level getLevel()
StdLogger.Level.public void error(@Nullable
java.lang.Throwable t,
@Nullable
java.lang.String errorFormat,
java.lang.Object... args)
Prints an error message.
The message will be tagged with "Error" on the output so the caller does not need to put such a prefix in the format string.
The output is done on System.err.
StdLogger.Level.error in interface ILoggert - is an optional Throwable or Exception. If non-null, it's
message will be printed out.errorFormat - is an optional error format. If non-null, it will be printed
using a Formatter with the provided arguments.args - provides the arguments for errorFormat.public void warning(@NonNull
java.lang.String warningFormat,
java.lang.Object... args)
Prints a warning message.
The message will be tagged with "Warning" on the output so the caller does not need to put such a prefix in the format string.
The output is done on System.out.
This is displayed only if the logging StdLogger.Level is StdLogger.Level.WARNING or higher.
public void info(@NonNull
java.lang.String msgFormat,
java.lang.Object... args)
Prints an info message.
The output is done on System.out.
This is displayed only if the logging StdLogger.Level is StdLogger.Level.INFO or higher.
public void verbose(@NonNull
java.lang.String msgFormat,
java.lang.Object... args)
Prints a verbose message.
The output is done on System.out.
This is displayed only if the logging StdLogger.Level is StdLogger.Level.VERBOSE or higher.