* @param level the message logging level
* @return <code>true</code> if a message of specified level would actually
* be logged;<code>false</code> otherwise.
*/
public static boolean isLoggable(Level level) {
LogContext log = (LogContext) LogContext.getCurrentLogContext();
if (log instanceof StandardLog) {
return ((StandardLog) log)._logger.isLoggable(level);
} else if (level.intValue() >= Level.SEVERE.intValue()) {
return LogContext.isErrorLogged();
} else if (level.intValue() >= Level.WARNING.intValue()) {