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

io.webfolder.ui4j.api.util.Slf4jLogger Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package io.webfolder.ui4j.api.util;

/**
 * An implementation of {@link io.webfolder.ui4j.api.util.Logger} instance.
 * 
 * 

This is an proxy class that delegates all method calls to {@link org.slf4j.Logger}.

*/ public class Slf4jLogger implements Logger { private final org.slf4j.Logger log; public Slf4jLogger(Object log) { this.log = (org.slf4j.Logger) log; } /** * {@inheritDoc} * * @see org.slf4j.Logger#info(String) */ @Override public void info(String message) { log.info(message); } /** * {@inheritDoc} * * @see org.slf4j.Logger#error(String) */ @Override public void error(String message) { log.error(message); } /** * {@inheritDoc} * * @see org.slf4j.Logger#debug(String) */ @Override public void debug(String message) { log.debug(message); } /** * {@inheritDoc} * * @see org.slf4j.Logger#error(String, Throwable) */ @Override public void error(Throwable t) { log.error(t.getMessage(), t); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy