Prints log message and stack trace.
This method should be overriden by real logger implementations
if( prefix==null ) prefix="tomcat";
com.sun.org.apache.commons.logging.Log l=(com.sun.org.apache.commons.logging.Log)loggers.get( prefix );
if( l==null ) {
l=LogFactory.getLog( prefix );
loggers.put( prefix, l );
}
if( verbosityLevel > this.level ) return;
if( t==null ) {
if( verbosityLevel == Log.FATAL )
l.fatal(msg);
else if( verbosityLevel == Log.ERROR )
l.error( msg );
else if( verbosityLevel == Log.WARNING )
l.warn( msg );
else if( verbosityLevel == Log.INFORMATION)
l.info( msg );
else if( verbosityLevel == Log.DEBUG )
l.debug( msg );
} else {
if( verbosityLevel == Log.FATAL )
l.fatal(msg, t);
else if( verbosityLevel == Log.ERROR )
l.error( msg, t );
else if( verbosityLevel == Log.WARNING )
l.warn( msg, t );
else if( verbosityLevel == Log.INFORMATION)
l.info( msg, t );
else if( verbosityLevel == Log.DEBUG )
l.debug( msg, t );
}