public void runLogCheck() { Utils util = new Utils(); try { util.deleteFileBiggerThan(Constants.LOG_FILE_MAX_SIZE, util.getLogPath()); } catch (Exception e) { util.writeEventLog(e.Message); util.writeEventLog(e.StackTrace); } }