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

com.github.volodya_lombrozo.conventional_commit_linter.log.JavaLog Maven / Gradle / Ivy

package com.github.volodya_lombrozo.conventional_commit_linter.log;

import java.util.logging.Logger;

public class JavaLog implements Log {

    private final Logger logger;

    public JavaLog() {
        this(Logger.getLogger(JavaLog.class.getName()));
    }

    public JavaLog(Logger logger) {
        this.logger = logger;
    }

    @Override
    public void info(String message) {
        logger.info(message);
    }

    @Override
    public void error(Exception e) {
        logger.info(e.getMessage());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy