/** * This method tries to create a dump of all active log files. For this to work you need a {@link * FileDumpHandler} attached to the root logger. */ public static void dumpLogFiles() { File[] files = LogTools.getFilesThreadLocal(); for (File file : files) { if (!file.exists()) { continue; } Logger.getLogger("").log(Level.WARNING, "dump " + file.getAbsolutePath(), file); } }
public class PACKAGE { public static final Logger Log = LogTools.getLogger(PACKAGE.class); }