Class ConsoleGitHubLogger
java.lang.Object
io.github.intisy.gradle.github.api.log.ConsoleGitHubLogger
- All Implemented Interfaces:
GitHubLogger
A
GitHubLogger for use outside a Gradle build, writing every level to System.err
so System.out stays clean for consumers that parse it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRecords a verbose diagnostic message intended for troubleshooting, not routine output.voidRecords a failure message with no associated exception.voidRecords a failure message together with the exception that caused it.voidRecords a normal, always-visible progress message (e.g.voidRecords a recoverable-condition message (e.g.
-
Constructor Details
-
ConsoleGitHubLogger
public ConsoleGitHubLogger(boolean debug) - Parameters:
debug- whetherdebug(String)messages are written.
-
-
Method Details
-
log
Description copied from interface:GitHubLoggerRecords a normal, always-visible progress message (e.g. "Cloning repository...").- Specified by:
login interfaceGitHubLogger- Parameters:
message- the fully formatted message; the implementation applies no templating or placeholder substitution, so build the final text with string concatenation before calling.
-
error
Description copied from interface:GitHubLoggerRecords a failure message with no associated exception.- Specified by:
errorin interfaceGitHubLogger- Parameters:
message- the fully formatted message; the implementation applies no templating or placeholder substitution, so build the final text with string concatenation before calling.
-
error
Description copied from interface:GitHubLoggerRecords a failure message together with the exception that caused it.- Specified by:
errorin interfaceGitHubLogger- Parameters:
message- 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.
-
debug
Description copied from interface:GitHubLoggerRecords a verbose diagnostic message intended for troubleshooting, not routine output.- Specified by:
debugin interfaceGitHubLogger- Parameters:
message- the fully formatted message; the implementation applies no templating or placeholder substitution, so build the final text with string concatenation before calling.
-
warn
Description copied from interface:GitHubLoggerRecords a recoverable-condition message (e.g. falling back to a cached jar after a rate limit).- Specified by:
warnin interfaceGitHubLogger- Parameters:
message- the fully formatted message; the implementation applies no templating or placeholder substitution, so build the final text with string concatenation before calling.
-