asit.common
Class LogFactory
java.lang.Object
asit.common.LogFactory
- public class LogFactory
- extends Object
This class is responsible for initializing the logging system. This
will be done the first time a logger is requested.
All other classes can use this class to get a logger with a specific
name.
Configuration possibilities:
- Specify the location of the log4j configuration file using the
system property "log4j.configuration".
- Locate the file in the system resources using the following path:
"asit/logging/logger.properties".
If both options are enabled and the resources are available the first one
has a higher precedence.
- Author:
- Arne Tauber
|
Constructor Summary |
protected |
LogFactory()
Protected constructor to keep singleton. |
|
Method Summary |
static Logger |
getLogger(String name)
Deprecated. Please use Apache Commons LogFactory instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_PROPS
protected static final String LOGGER_PROPS
- See Also:
- Constant Field Values
LogFactory
protected LogFactory()
- Protected constructor to keep singleton.
getLogger
public static Logger getLogger(String name)
- Deprecated. Please use Apache Commons LogFactory instead
- Returns a logger with a specific name. This name must not
be
null
.
- Parameters:
name - the name of the logger.
- Returns:
- the logger with the given name.
Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.