Class Slf4jReporter

    • Constructor Detail

      • Slf4jReporter

        public Slf4jReporter​(java.lang.Class<?> loggingClass)
      • Slf4jReporter

        public Slf4jReporter()
    • Method Detail

      • error

        public Reporter.SetLocation error​(java.lang.String format,
                                          java.lang.Object... args)
        Description copied from interface: Reporter
        Create an error. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.
        Specified by:
        error in interface Reporter
        Overrides:
        error in class ReporterAdapter
        Parameters:
        format - The format of the error
        args - The arguments of the error
        Returns:
        a SetLocation to set the location
      • warning

        public Reporter.SetLocation warning​(java.lang.String format,
                                            java.lang.Object... args)
        Description copied from interface: Reporter
        Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.
        Specified by:
        warning in interface Reporter
        Overrides:
        warning in class ReporterAdapter
        Parameters:
        format - The format of the error
        args - The arguments of the error
        Returns:
        a SetLocation to set the location
      • trace

        @Deprecated
        public void trace​(java.lang.String format,
                          java.lang.Object... args)
        Deprecated.
        Use SLF4J Logger.debug instead.
        Description copied from interface: Reporter
        Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.
        Specified by:
        trace in interface Reporter
        Overrides:
        trace in class ReporterAdapter
        Parameters:
        format - The format of the error
        args - The arguments of the error
      • progress

        @Deprecated
        public void progress​(float progress,
                             java.lang.String format,
                             java.lang.Object... args)
        Deprecated.
        Use SLF4J Logger.info(aQute.libg.slf4j.GradleLogging.LIFECYCLE) instead.
        Description copied from interface: Reporter
        Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.
        Specified by:
        progress in interface Reporter
        Overrides:
        progress in class ReporterAdapter
        Parameters:
        progress - A value between 0 and 1 indicating the progress. 0 is starting and >=1 is done.
        format - The format of the error
        args - The arguments of the error
      • exception

        public Reporter.SetLocation exception​(java.lang.Throwable t,
                                              java.lang.String format,
                                              java.lang.Object... args)
        Description copied from interface: Reporter
        Dedicated message for an exception.
        Specified by:
        exception in interface Reporter
        Overrides:
        exception in class ReporterAdapter
        Parameters:
        t - The exception
        format - The format of the message
        args - The arguments
      • getAlternative

        public static Reporter getAlternative​(java.lang.Class<?> class1,
                                              Reporter reporter)