org.archive.crawler.util
Class LogUtils

java.lang.Object
  extended by org.archive.crawler.util.LogUtils

public class LogUtils
extends java.lang.Object

Logging utils.

Author:
stack

Constructor Summary
LogUtils()
           
 
Method Summary
static void createFileLogger(java.io.File logsDir, java.lang.String baseName, java.util.logging.Logger logger)
          Creates a file logger that use heritrix.properties file logger configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtils

public LogUtils()
Method Detail

createFileLogger

public static void createFileLogger(java.io.File logsDir,
                                    java.lang.String baseName,
                                    java.util.logging.Logger logger)
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.
baseName - Base name to use for log file (Will have java.util.logging.FileHandler.pattern or '.log' for suffix).
logger - Logger whose handler we'll replace with the file handler created herein.


Copyright © 2003-2011 Internet Archive. All Rights Reserved.