Methods Summary |
---|
protected void | _log(java.lang.String msg)
System.out.println( msg );
|
com.sun.enterprise.admin.util.Logger | getInstance()
return( mInstance );
|
public static int | getLogLevel()
return( sLogLevel );
|
public static void | log(java.lang.String msg)OK, but log( object ) preferred if it avoids
generating a String from an object prior to the call.
if ( sLogLevel >= LOG_DEBUG )
{
System.out.println( msg );
}
|
public static void | log(java.lang.Object object)optimization for the caller; caller can pass an object
directly so that if logging is off, we won't ever call
toString()
if ( sLogLevel >= LOG_DEBUG && object != null )
{
log( object.toString() );
}
|
public static void | logError(java.lang.String msg)
if ( sLogLevel >= LOG_ERRORS && msg != null )
{
log( msg );
}
|
public static void | logFatal(java.lang.String msg)
// always log
log( msg );
|
public static int | setLogLevel(int logLevel)set the log level; return the old log level
int oldLevel = getLogLevel();
Assert.assertit( logLevel != LOG_OFF &&
logLevel != LOG_ERRORS &&
logLevel != LOG_DEBUG, "illegal log level" );
sLogLevel = logLevel;
return( oldLevel );
|