All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.build.axion.release.domain.logging.ReleaseLogger Maven / Gradle / Ivy

There is a newer version: 1.18.15
Show newest version
package pl.allegro.tech.build.axion.release.domain.logging;

import pl.allegro.tech.build.axion.release.infrastructure.output.GradleReleaseLoggerFactory;

public interface ReleaseLogger {

    void trace(String message);

    void debug(String message);

    void info(String message);

    void warn(String message);

    void error(String message);

    void quiet(String message);

    class Factory {
        private static ReleaseLoggerFactory factory = new GradleReleaseLoggerFactory();

        public static void initialize(ReleaseLoggerFactory factory) {
            Factory.factory = factory;
        }

        public static ReleaseLogger logger(Class clazz) {
            return factory.logger(clazz);
        }

        public static ReleaseLogger logger(String name) {
            return factory.logger(name);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy