| java.lang.Object org.archive.crawler.util.LogUtils
LogUtils | public class LogUtils (Code) | | Logging utils.
author: stack |
Method Summary | |
public static void | createFileLogger(File logsDir, String baseName, Logger logger) Creates a file logger that use heritrix.properties file logger
configuration. |
createFileLogger | public static void createFileLogger(File logsDir, String baseName, Logger logger)(Code) | | Creates a file logger that use heritrix.properties file logger
configuration.
Change the java.util.logging.FileHandler.* properties in
heritrix.properties to change file handler properties.
Use this method if you want a class to log to its own file
rather than use default (console) logger.
Parameters: logsDir - Directory in which to write logs. Parameters: baseName - Base name to use for log file (Will havejava.util.logging.FileHandler.pattern or '.log' for suffix). Parameters: logger - Logger whose handler we'll replace with thefile handler created herein. |
|
|