Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.archive.crawler.util
Class LogUtils

    java.lang.Object
      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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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