Package io.github.intisy.gradle.online
Class Logger
java.lang.Object
io.github.intisy.gradle.online.Logger
- Author:
- Finn Birich
-
Constructor Summary
ConstructorsConstructorDescriptionLogger(UsesExtension extension, org.gradle.api.Project project) Constructs a new instance of Logger.Logger(org.gradle.api.Project project) Constructs a new instance of Logger using the providedProjectinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug message if the debug mode is enabled or the log level is INFO or DEBUG.voidLogs an error message.voidLogs a message at the lifecycle level.voidLogs a warning message.
-
Constructor Details
-
Logger
public Logger(org.gradle.api.Project project) Constructs a new instance of Logger using the providedProjectinstance.- Parameters:
project- TheProjectinstance associated with this Logger.- Throws:
NullPointerException- If theprojectis null.- See Also:
-
Logger
Constructs a new instance of Logger.- Parameters:
extension- TheUsesExtensioninstance to be used for logging configuration.project- TheProjectinstance associated with this Logger.- Throws:
NullPointerException- If eitherextensionorprojectis null.
-
-
Method Details
-
log
Logs a message at the lifecycle level.- Parameters:
message- The message to be logged.
-
error
Logs an error message.- Parameters:
message- The error message to be logged.
-
debug
Logs a debug message if the debug mode is enabled or the log level is INFO or DEBUG.- Parameters:
message- The debug message to be logged.
-
warn
Logs a warning message.- Parameters:
message- The warning message to be logged.
-