org.pixel.commons.logger.ConsoleLoggerStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pixel-commons-linux Show documentation
Show all versions of pixel-commons-linux Show documentation
Java 2D Game Framework inspired on the popular XNA framework.
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