public class Logger
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String message)
Messages to be logged in debug mode.
|
void |
debug(java.lang.String message,
java.lang.Object... arguments)
Messages to be logged in debug mode according to the specified format
and arguments.
|
void |
debug(java.lang.String message,
java.lang.Object arg)
Messages to be logged in debug mode according to the specified format
and argument.
|
void |
debug(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
Messages to be logged in debug mode according to the specified format
and arguments.
|
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Messages to be logged in debug mode.
|
void |
error(java.lang.String message)
Messages to be logged in error mode.
|
void |
error(java.lang.String message,
java.lang.Object... arguments)
Messages to be logged in error mode according to the specified format
and arguments.
|
void |
error(java.lang.String message,
java.lang.Object arg)
Messages to be logged in error mode according to the specified format
and argument.
|
void |
error(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
Messages to be logged in error mode according to the specified format
and arguments.
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Messages to be logged in error mode.
|
static Logger |
getLoggerFor(java.lang.Class loggerClass) |
void |
info(java.lang.String message)
Messages to be logged in info mode.
|
void |
info(java.lang.String message,
java.lang.Object... arguments)
Messages to be logged in info mode according to the specified format
and arguments.
|
void |
info(java.lang.String message,
java.lang.Object arg)
Messages to be logged in info mode according to the specified format
and argument.
|
void |
info(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
Messages to be logged in info mode according to the specified format
and arguments.
|
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Messages to be logged in info mode.
|
static void |
initialize(com.thoughtworks.go.plugin.internal.api.LoggingService loggingService) |
void |
warn(java.lang.String message)
Messages to be logged in warn mode.
|
void |
warn(java.lang.String message,
java.lang.Object... arguments)
Messages to be logged in warn mode according to the specified format
and arguments.
|
void |
warn(java.lang.String message,
java.lang.Object arg)
Messages to be logged in warn mode according to the specified format
and argument.
|
void |
warn(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
Messages to be logged in warn mode according to the specified format
and arguments.
|
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Messages to be logged in warn mode.
|
public static Logger getLoggerFor(java.lang.Class loggerClass)
public static void initialize(com.thoughtworks.go.plugin.internal.api.LoggingService loggingService)
public void debug(java.lang.String message)
message - a string containing the message to be logged.public void debug(java.lang.String message,
java.lang.Throwable throwable)
message - a string containing the message to be logged.throwable - public void debug(java.lang.String message,
java.lang.Object arg)
This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
message - the format string.arg - the argumentpublic void debug(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
message - the format string.arg1 - the first argumentarg2 - the second argumentpublic void debug(java.lang.String message,
java.lang.Object... arguments)
This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
message - the format string.arguments - a list of 3 or more argumentspublic void info(java.lang.String message)
message - a string containing the message to be logged.public void info(java.lang.String message,
java.lang.Throwable throwable)
message - a string containing the message to be logged.throwable - public void info(java.lang.String message,
java.lang.Object arg)
This form avoids unnecessary object creation when the logger is disabled for the INFO level.
message - the format string.arg - the argumentpublic void info(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
This form avoids unnecessary object creation when the logger is disabled for the INFO level.
message - the format string.arg1 - the first argumentarg2 - the second argumentpublic void info(java.lang.String message,
java.lang.Object... arguments)
This form avoids unnecessary object creation when the logger is disabled for the INFO level.
message - the format string.arguments - a list of 3 or more argumentspublic void warn(java.lang.String message)
message - a string containing the message to be logged.public void warn(java.lang.String message,
java.lang.Throwable throwable)
message - a string containing the message to be logged.throwable - public void warn(java.lang.String message,
java.lang.Object arg)
This form avoids unnecessary object creation when the logger is disabled for the WARN level.
message - the format string.arg - the argumentpublic void warn(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
This form avoids unnecessary object creation when the logger is disabled for the WARN level.
message - the format string.arg1 - the first argumentarg2 - the second argumentpublic void warn(java.lang.String message,
java.lang.Object... arguments)
This form avoids unnecessary object creation when the logger is disabled for the WARN level.
message - the format string.arguments - a list of 3 or more argumentspublic void error(java.lang.String message)
message - a string containing the message to be logged.public void error(java.lang.String message,
java.lang.Throwable throwable)
message - a string containing the message to be logged.throwable - public void error(java.lang.String message,
java.lang.Object arg)
This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
message - the format string.arg - the argumentpublic void error(java.lang.String message,
java.lang.Object arg1,
java.lang.Object arg2)
This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
message - the format string.arg1 - the first argumentarg2 - the second argumentpublic void error(java.lang.String message,
java.lang.Object... arguments)
This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
message - the format string.arguments - a list of 3 or more argumentsCopyright © 2018 ThoughtWorks, Inc. GoCD Version: 18.2.0-6228