cz.mmsparams.api.logging.JavaLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MmsParamsAPI Show documentation
Show all versions of MmsParamsAPI Show documentation
Common library for MmsParams system
The newest version!
package cz.mmsparams.api.logging;
import java.util.logging.Level;
import java.util.logging.Logger;
public class JavaLogger implements ILogger
{
private final Logger logger;
public JavaLogger(Class clz)
{
this.logger = Logger.getLogger(clz.getName());
}
@Override
public void info(String info)
{
logger.info(info);
}
@Override
public void warn(String warning)
{
logger.warning(warning);
}
@Override
public void error(Throwable t)
{
logger.log(Level.SEVERE, "", t);
}
@Override
public void error(String message, Throwable t)
{
logger.log(Level.SEVERE, message, t);
}
@Override
public void error(String error)
{
logger.log(Level.SEVERE, error);
}
@Override
public void logIncomingMessage(String messageJson)
{
info(messageJson);
}
@Override
public void logOutgoingMessage(String messageJson)
{
info(messageJson);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy