public class SlackNotificationsLogger extends Object implements BuildAwareLogger
Constructor and Description |
---|
SlackNotificationsLogger(Logger system,
TaskListener listener) |
Modifier and Type | Method and 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
|
public SlackNotificationsLogger(Logger system, TaskListener listener)
public void debug(String key, String message, Object... args)
debug
in interface BuildAwareLogger
key
- - Human-readable representation of the buildmessage
- - message to be written to the system logargs
- - arguments for the messagefor message formatting options
,
to create a build key easily
public void info(String key, String message, Object... args)
info
in interface BuildAwareLogger
key
- - Human-readable representation of the buildmessage
- - message to be written to system log and build's console outputargs
- - arguments for the messagefor message formatting options
,
to create a build key easily
public TaskListener getTaskListener()
getTaskListener
in interface BuildAwareLogger
Copyright © 2016–2022. All rights reserved.