Class GoogleChatNotificationsLogger
- java.lang.Object
-
- jenkins.plugins.googlechat.logging.GoogleChatNotificationsLogger
-
- All Implemented Interfaces:
BuildAwareLogger
public class GoogleChatNotificationsLogger extends Object implements BuildAwareLogger
-
-
Constructor Summary
Constructors Constructor Description GoogleChatNotificationsLogger(Logger system, TaskListener listener, boolean suppressInfoLoggers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String key, String message, Object... args)
Debug logs are only written to the system log.TaskListener
getTaskListener()
void
info(String key, String message, Object... args)
Info logs are written to the system log with the build key and to the build's log without the key
-
-
-
Constructor Detail
-
GoogleChatNotificationsLogger
public GoogleChatNotificationsLogger(Logger system, TaskListener listener, boolean suppressInfoLoggers)
-
-
Method Detail
-
debug
public void debug(String key, String message, Object... args)
Debug logs are only written to the system log.- Specified by:
debug
in interfaceBuildAwareLogger
- Parameters:
key
- - Human-readable representation of the buildmessage
- - message to be written to the system logargs
- - arguments for the message- See Also:
for message formatting options
,to create a build key easily
-
info
public void info(String key, String message, Object... args)
Info logs are written to the system log with the build key and to the build's log without the key- Specified by:
info
in interfaceBuildAwareLogger
- Parameters:
key
- - Human-readable representation of the buildmessage
- - message to be written to system log and build's console outputargs
- - arguments for the message- See Also:
for message formatting options
,to create a build key easily
-
getTaskListener
public TaskListener getTaskListener()
- Specified by:
getTaskListener
in interfaceBuildAwareLogger
-
-