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

org.frameworkset.log.DefaultLogger Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.7
Show newest version
package org.frameworkset.log;






public class DefaultLogger extends Logger
{
	org.slf4j.Logger log = null;
    public DefaultLogger(org.slf4j.Logger log)
    {
        this.log = log;
    }
    public DefaultLogger()
    {
        
    }
    @Override
    public void logBasic(String log)
    {
        System.out.println(log);

    }

    @Override
    public void logBasic(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logDebug(String log)
    {
        if(this.log != null)
            this.log.debug(log);
        else
            System.out.println(log);

    }

    @Override
    public void logDebug(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logDetailed(String log)
    {
        if(this.log != null)
            this.log.debug(log);
        else
            System.out.println(log);

    }

    @Override
    public void logDetailed(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logError(String log)
    {
        if(this.log != null)
            this.log.debug(log);
        else
            System.out.println(log);

    }

    @Override
    public void logError(String log, Throwable e)
    {
        if(this.log != null)
            this.log.debug(log);
        else
            System.out.println(log);

    }

    @Override
    public void logError(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logError(String subject, String log, Throwable e)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logMinimal(String log)
    {
        if(this.log != null)
            this.log.debug(log);
        else
            System.out.println(log);

    }

    @Override
    public void logMinimal(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

    @Override
    public void logRowlevel(String log)
    {
        if(this.log != null)
            this.log.debug( log);
        else
            System.out.println(log);

    }

    @Override
    public void logRowlevel(String subject, String log)
    {
        if(this.log != null)
            this.log.debug(subject + "--" + log);
        else
            System.out.println(subject + "--" + log);

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy