public class Logger extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
dbg(String message)
Logs a debug message.
|
void |
dbg(String format,
Object... args)
Logs a debug message.
|
void |
dbg(String format,
Object arg1)
Logs a debug message.
|
void |
dbg(String format,
Object arg1,
Object arg2)
Logs a debug message.
|
void |
dbg(String format,
Object arg1,
Object arg2,
Object arg3)
Logs a debug message.
|
void |
dbg(String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs a debug message.
|
void |
dbg(Throwable throwable)
Logs a debug exception.
|
void |
dbg(Throwable throwable,
String message)
Logs a debug message.
|
void |
dbg(Throwable throwable,
String format,
Object... args)
Logs a debug message.
|
void |
dbg(Throwable throwable,
String format,
Object arg1)
Logs a debug message.
|
void |
dbg(Throwable throwable,
String format,
Object arg1,
Object arg2)
Logs a debug message.
|
void |
dbg(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3)
Logs a debug message.
|
void |
dbg(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs a debug message.
|
void |
err(String message)
Logs an error message.
|
void |
err(String format,
Object... args)
Logs an error message.
|
void |
err(String format,
Object arg1)
Logs an error message.
|
void |
err(String format,
Object arg1,
Object arg2)
Logs an error message.
|
void |
err(String format,
Object arg1,
Object arg2,
Object arg3)
Logs an error message.
|
void |
err(String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs an error message.
|
void |
err(Throwable throwable)
Logs an error exception.
|
void |
err(Throwable throwable,
String message)
Logs an error message.
|
void |
err(Throwable throwable,
String format,
Object... args)
Logs an error message.
|
void |
err(Throwable throwable,
String format,
Object arg1)
Logs an error message.
|
void |
err(Throwable throwable,
String format,
Object arg1,
Object arg2)
Logs an error message.
|
void |
err(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3)
Logs an error message.
|
void |
err(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs an error message.
|
List<Object> |
getContextList()
Returns the list of contexts.
|
static Log.Level |
getDefaultLevel()
Gets the default log level.
|
static Log |
getDefaultLog()
Gets the default log instance.
|
Log |
getLog()
Returns the log instance of this logger.
|
Log.Level |
getLogLevel()
Returns the log level of this logger.
|
static Logger |
newLogger(Log log,
Log.Level level,
Object context)
Creates a new logger.
|
static void |
setDefaultLevel(Log.Level level)
Sets the default log level.
|
static void |
setDefaultLog(Log log)
Sets the default log instance.
|
Logger |
subContextLogger(Object context)
Creates a new logger with the same log instance and log level, but adding the specified
context to the list of contexts.
|
void |
wrn(String message)
Logs a warning message.
|
void |
wrn(String format,
Object... args)
Logs a warning message.
|
void |
wrn(String format,
Object arg1)
Logs a warning message.
|
void |
wrn(String format,
Object arg1,
Object arg2)
Logs a warning message.
|
void |
wrn(String format,
Object arg1,
Object arg2,
Object arg3)
Logs a warning message.
|
void |
wrn(String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs a warning message.
|
void |
wrn(Throwable throwable)
Logs a warning exception.
|
void |
wrn(Throwable throwable,
String message)
Logs a warning message.
|
void |
wrn(Throwable throwable,
String format,
Object... args)
Logs a warning message.
|
void |
wrn(Throwable throwable,
String format,
Object arg1)
Logs a warning message.
|
void |
wrn(Throwable throwable,
String format,
Object arg1,
Object arg2)
Logs a warning message.
|
void |
wrn(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3)
Logs a warning message.
|
void |
wrn(Throwable throwable,
String format,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs a warning message.
|
@NotNull public static Log.Level getDefaultLevel()
public static void setDefaultLevel(@NotNull
Log.Level level)
level - the log level.@NotNull public static Log getDefaultLog()
public static void setDefaultLog(@NotNull
Log log)
log - the log instance.@NotNull public static Logger newLogger(@Nullable Log log, @Nullable Log.Level level, @NotNull Object context)
log - the log instance.level - the log level.context - the context.public void dbg(@Nullable
String message)
message - the message.public void dbg(@NotNull
String format,
@Nullable
Object arg1)
format - the message format.arg1 - the first format argument.public void dbg(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void dbg(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void dbg(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.public void dbg(@NotNull
String format,
@Nullable
Object... args)
format - the message format.args - the format arguments.public void dbg(@Nullable
Throwable throwable)
throwable - the related throwable.public void dbg(@Nullable
Throwable throwable,
@Nullable
String message)
throwable - the related throwable.message - the message.public void dbg(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1)
throwable - the related throwable.format - the message format.arg1 - the first format argument.public void dbg(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void dbg(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void dbg(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.public void dbg(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object... args)
throwable - the related throwable.format - the message format.args - the format arguments.public void err(@Nullable
String message)
message - the message.public void err(@NotNull
String format,
@Nullable
Object arg1)
format - the message format.arg1 - the first format argument.public void err(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void err(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void err(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.public void err(@NotNull
String format,
@Nullable
Object... args)
format - the message format.args - the format arguments.public void err(@NotNull
Throwable throwable)
throwable - the related throwable.public void err(@NotNull
Throwable throwable,
@Nullable
String message)
throwable - the related throwable.message - the message.public void err(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1)
throwable - the related throwable.format - the message format.arg1 - the first format argument.public void err(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void err(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void err(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.public void err(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object... args)
throwable - the related throwable.format - the message format.args - the format arguments.@NotNull public List<Object> getContextList()
@NotNull public Log getLog()
@NotNull public Log.Level getLogLevel()
@NotNull public Logger subContextLogger(@NotNull Object context)
context - the context.public void wrn(@Nullable
String message)
message - the message.public void wrn(@NotNull
String format,
@Nullable
Object arg1)
format - the message format.arg1 - the first format argument.public void wrn(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void wrn(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void wrn(@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.public void wrn(@NotNull
String format,
@Nullable
Object... args)
format - the message format.args - the format arguments.public void wrn(@NotNull
Throwable throwable)
throwable - the related throwable.public void wrn(@NotNull
Throwable throwable,
@Nullable
String message)
throwable - the related throwable.message - the message.public void wrn(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1)
throwable - the related throwable.format - the message format.arg1 - the first format argument.public void wrn(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.public void wrn(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.public void wrn(@NotNull
Throwable throwable,
@NotNull
String format,
@Nullable
Object arg1,
@Nullable
Object arg2,
@Nullable
Object arg3,
@Nullable
Object arg4)
throwable - the related throwable.format - the message format.arg1 - the first format argument.arg2 - the second format argument.arg3 - the third format argument.arg4 - the fourth format argument.