public boolean check(final int level) {int currentLevel;try {currentLevel = Integer.parseInt(System.getProperty("poi.log.level", WARN + ""));} catch (SecurityException e) {currentLevel = POILogger.DEBUG;}return level >= currentLevel;}
public override bool Check(int level){int currentLevel;try{var temp = WARN.ToString(CultureInfo.InvariantCulture);currentLevel = int.Parse(temp, CultureInfo.InvariantCulture);}catch (Exception){currentLevel = POILogger.DEBUG;}if (level >= currentLevel){return true;}return false;}