Package jenkins.plugins.slack.logging
Class SlackNotificationsLogger
- java.lang.Object
-
- jenkins.plugins.slack.logging.SlackNotificationsLogger
-
- All Implemented Interfaces:
BuildAwareLogger
public class SlackNotificationsLogger extends Object implements BuildAwareLogger
-
-
Constructor Summary
Constructors Constructor Description SlackNotificationsLogger(Logger system, TaskListener listener)
-
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
-
SlackNotificationsLogger
public SlackNotificationsLogger(Logger system, TaskListener listener)
-
-
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
-
-