Class Logger

java.lang.Object
io.github.intisy.gradle.online.Logger

public class Logger extends Object
Author:
Finn Birich
  • Constructor Summary

    Constructors
    Constructor
    Description
    Logger(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 provided Project instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Logs a debug message if the debug mode is enabled or the log level is INFO or DEBUG.
    void
    error(String message)
    Logs an error message.
    void
    log(String message)
    Logs a message at the lifecycle level.
    void
    warn(String message)
    Logs a warning message.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Logger

      public Logger(org.gradle.api.Project project)
      Constructs a new instance of Logger using the provided Project instance.
      Parameters:
      project - The Project instance associated with this Logger.
      Throws:
      NullPointerException - If the project is null.
      See Also:
    • Logger

      public Logger(UsesExtension extension, org.gradle.api.Project project)
      Constructs a new instance of Logger.
      Parameters:
      extension - The UsesExtension instance to be used for logging configuration.
      project - The Project instance associated with this Logger.
      Throws:
      NullPointerException - If either extension or project is null.
  • Method Details

    • log

      public void log(String message)
      Logs a message at the lifecycle level.
      Parameters:
      message - The message to be logged.
    • error

      public void error(String message)
      Logs an error message.
      Parameters:
      message - The error message to be logged.
    • debug

      public void debug(String message)
      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

      public void warn(String message)
      Logs a warning message.
      Parameters:
      message - The warning message to be logged.