|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.Log
public class Log
Class responsible for instantiating of the system logger. This way anybody can use this default logger to output their log messages without worrying what logger to use.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_LOGCONFIG_FILE_NAME
Default file name of configuration file. |
static java.lang.String |
DEFAULT_LOGGER_NAME
Name of the default logger. |
protected static java.util.logging.Logger |
s_lgLogger
Default Java logger to log messages to the application. |
protected static java.util.logging.Logger |
s_logger
Logger for this class. |
protected static java.lang.String |
s_strConfigFile
Name of the configuration file actually used to configure the logger. |
protected static java.lang.String |
s_strMutex
Helper mutex to synchronize some methods. |
| Constructor Summary | |
|---|---|
protected |
Log()
Hidden constructor to disable creation of instances of this class. |
| Method Summary | |
|---|---|
protected static java.io.InputStream |
findConfigFile(java.lang.String strConfigFileName)
Find and configuration file. |
static java.util.logging.Logger |
getInstance()
Deprecated. |
static java.util.logging.Logger |
getInstance(java.lang.Class classIdentifier)
Get instance of configured logger which can be used to log messages from the application. |
static java.util.logging.Logger |
getInstance(java.lang.String logIdentifier)
Get instance of configured logger which can be used to log messages from the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_LOGGER_NAME
public static final java.lang.String DEFAULT_LOGCONFIG_FILE_NAME
protected static transient java.util.logging.Logger s_lgLogger
protected static transient java.lang.String s_strMutex
protected static java.lang.String s_strConfigFile
protected static java.util.logging.Logger s_logger
| Constructor Detail |
|---|
protected Log()
| Method Detail |
|---|
public static java.util.logging.Logger getInstance()
public static java.util.logging.Logger getInstance(java.lang.Class classIdentifier)
classIdentifier - - identifier of class to get the logger for
public static java.util.logging.Logger getInstance(java.lang.String logIdentifier)
logIdentifier - - identifier of log to get
protected static java.io.InputStream findConfigFile(java.lang.String strConfigFileName)
throws java.io.IOException,
java.io.FileNotFoundException
strConfigFileName - - name of the configuration file
java.io.IOException - - an error has occured opening configuration file
java.io.FileNotFoundException - - file cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||