Esempio n. 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.");
   }
 }
Esempio n. 2
0
 private static void markLogFile(String username, RotatingFileTarget target) {
   List args = new ArrayList();
   args.add(username);
   args.add(JiveGlobals.formatDateTime(new java.util.Date()));
   target.write(LocaleUtils.getLocalizedString("log.marker_inserted_by", args) + "\n");
 }