public class ConsoleGitHubLogger extends java.lang.Object implements GitHubLogger
GitHubLogger for use outside a Gradle build, writing every level to System.err
so System.out stays clean for consumers that parse it.| Constructor and Description |
|---|
ConsoleGitHubLogger(boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String message)
Records a verbose diagnostic message intended for troubleshooting, not routine output.
|
void |
error(java.lang.String message)
Records a failure message with no associated exception.
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Records a failure message together with the exception that caused it.
|
void |
log(java.lang.String message)
Records a normal, always-visible progress message (e.g.
|
void |
warn(java.lang.String message)
Records a recoverable-condition message (e.g.
|
public ConsoleGitHubLogger(boolean debug)
debug - whether debug(String) messages are written.public void log(java.lang.String message)
GitHubLoggerlog in interface GitHubLoggermessage - the fully formatted message; the implementation applies no templating or
placeholder substitution, so build the final text with string concatenation before calling.public void error(java.lang.String message)
GitHubLoggererror in interface GitHubLoggermessage - the fully formatted message; the implementation applies no templating or
placeholder substitution, so build the final text with string concatenation before calling.public void error(java.lang.String message,
java.lang.Throwable throwable)
GitHubLoggererror in interface GitHubLoggermessage - the fully formatted message; the implementation applies no templating or
placeholder substitution, so build the final text with string concatenation before calling.throwable - the exception that caused the failure.public void debug(java.lang.String message)
GitHubLoggerdebug in interface GitHubLoggermessage - the fully formatted message; the implementation applies no templating or
placeholder substitution, so build the final text with string concatenation before calling.public void warn(java.lang.String message)
GitHubLoggerwarn in interface GitHubLoggermessage - the fully formatted message; the implementation applies no templating or
placeholder substitution, so build the final text with string concatenation before calling.