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

org.pixel.commons.logger.ConsoleLoggerStrategy Maven / Gradle / Ivy

The newest version!
/*
 * This software is available under Apache License
 * Copyright (c) 2020
 */

package org.pixel.commons.logger;

public class ConsoleLoggerStrategy implements LoggerStrategy {

    /**
     * Creates a logger object
     *
     * @return
     */
    @Override
    public Logger createLogger(Class classRef) {
        return new ConsoleLogger(LogManager.getContext(classRef));
    }

    /**
     * Creates a logger object
     *
     * @param context
     * @return
     */
    @Override
    public Logger createLogger(String context) {
        return new ConsoleLogger(LogManager.getContext(context));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy