Class Logger
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.logging.Logger
-
public class Logger extends java.lang.Object
Logger for use by plugin developers.- See Also:
- Go Plugin Documentation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String message)
Messages to be logged in debug mode.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... arguments)
Messages to be logged in debug mode according to the specified format and arguments.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 arg)
Messages to be logged in error mode according to the specified format and argument.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 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 arg)
Messages to be logged in info mode according to the specified format and argument.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 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 arg)
Messages to be logged in warn mode according to the specified format and argument.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 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.
-
-
-
Method Detail
-
getLoggerFor
public static Logger getLoggerFor(java.lang.Class loggerClass)
-
initialize
public static void initialize(com.thoughtworks.go.plugin.internal.api.LoggingService loggingService)
-
debug
public void debug(java.lang.String message)
Messages to be logged in debug mode.- Parameters:
message
- a string containing the message to be logged.
-
debug
public void debug(java.lang.String message, java.lang.Throwable throwable)
Messages to be logged in debug mode.- Parameters:
message
- a string containing the message to be logged.throwable
-
-
debug
public void debug(java.lang.String message, java.lang.Object arg)
Messages to be logged in debug mode according to the specified format and argument.This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
- Parameters:
message
- the format string.arg
- the argument
-
debug
public 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.This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
- Parameters:
message
- the format string.arg1
- the first argumentarg2
- the second argument
-
debug
public void debug(java.lang.String message, java.lang.Object... arguments)
Messages to be logged in debug mode according to the specified format and arguments.This form avoids unnecessary object creation when the logger is disabled for the DEBUG level.
- Parameters:
message
- the format string.arguments
- a list of 3 or more arguments
-
info
public void info(java.lang.String message)
Messages to be logged in info mode.- Parameters:
message
- a string containing the message to be logged.
-
info
public void info(java.lang.String message, java.lang.Throwable throwable)
Messages to be logged in info mode.- Parameters:
message
- a string containing the message to be logged.throwable
-
-
info
public void info(java.lang.String message, java.lang.Object arg)
Messages to be logged in info mode according to the specified format and argument.This form avoids unnecessary object creation when the logger is disabled for the INFO level.
- Parameters:
message
- the format string.arg
- the argument
-
info
public 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.This form avoids unnecessary object creation when the logger is disabled for the INFO level.
- Parameters:
message
- the format string.arg1
- the first argumentarg2
- the second argument
-
info
public void info(java.lang.String message, java.lang.Object... arguments)
Messages to be logged in info mode according to the specified format and arguments.This form avoids unnecessary object creation when the logger is disabled for the INFO level.
- Parameters:
message
- the format string.arguments
- a list of 3 or more arguments
-
warn
public void warn(java.lang.String message)
Messages to be logged in warn mode.- Parameters:
message
- a string containing the message to be logged.
-
warn
public void warn(java.lang.String message, java.lang.Throwable throwable)
Messages to be logged in warn mode.- Parameters:
message
- a string containing the message to be logged.throwable
-
-
warn
public void warn(java.lang.String message, java.lang.Object arg)
Messages to be logged in warn mode according to the specified format and argument.This form avoids unnecessary object creation when the logger is disabled for the WARN level.
- Parameters:
message
- the format string.arg
- the argument
-
warn
public 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.This form avoids unnecessary object creation when the logger is disabled for the WARN level.
- Parameters:
message
- the format string.arg1
- the first argumentarg2
- the second argument
-
warn
public void warn(java.lang.String message, java.lang.Object... arguments)
Messages to be logged in warn mode according to the specified format and arguments.This form avoids unnecessary object creation when the logger is disabled for the WARN level.
- Parameters:
message
- the format string.arguments
- a list of 3 or more arguments
-
error
public void error(java.lang.String message)
Messages to be logged in error mode.- Parameters:
message
- a string containing the message to be logged.
-
error
public void error(java.lang.String message, java.lang.Throwable throwable)
Messages to be logged in error mode.- Parameters:
message
- a string containing the message to be logged.throwable
-
-
error
public void error(java.lang.String message, java.lang.Object arg)
Messages to be logged in error mode according to the specified format and argument.This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
- Parameters:
message
- the format string.arg
- the argument
-
error
public 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.This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
- Parameters:
message
- the format string.arg1
- the first argumentarg2
- the second argument
-
error
public void error(java.lang.String message, java.lang.Object... arguments)
Messages to be logged in error mode according to the specified format and arguments.This form avoids unnecessary object creation when the logger is disabled for the ERROR level.
- Parameters:
message
- the format string.arguments
- a list of 3 or more arguments
-
-