public static int getLevelIntCode ( final String aLogLevelName ) { final String levelName = aLogLevelName . trim ( ) . toLowerCase ( Locale . US ) ; if ( "error" . equals ( levelName ) ) { return ERROR_LOG_LEVEL ; } else if ( "warn" . equals ( levelName ) ) { return WARN_LOG_LEVEL ; } else if ( "info" . equals ( levelName ) ) { return INFO_LOG_LEVEL ; } else if ( "debug" . equals ( levelName ) ) { return DEBUG_LOG_LEVEL ; } else if ( "trace" . equals ( levelName ) ) { return TRACE_LOG_LEVEL ; } else { return 0 ; } }
Returns the int of the supplied log level or zero if the supplied name doesn t match a known log level .