org.frameworkset.log.DefaultLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-core Show documentation
Show all versions of bboss-core Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
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