Example #1
0
 public static void rotateErrorLogFile() {
   RotatingFileTarget target = (RotatingFileTarget) errorLog.getLogTargets()[0];
   try {
     target.rotate();
   } catch (IOException e) {
     System.err.println(
         "Warning: There was an error rotating the Jive error log file. "
             + "Logging may not work correctly until a restart happens.");
   }
 }
Example #2
0
 public static void markErrorLogFile(String username) {
   RotatingFileTarget target = (RotatingFileTarget) errorLog.getLogTargets()[0];
   markLogFile(username, target);
 }