|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jlog2.LoggerFactory
public abstract class LoggerFactory
This abstract class must be implemented to return logger instances for each specific logger type.
| Field Summary | |
|---|---|
protected java.util.Hashtable |
debugChannels
The debug channels mapped to the appropriate logger ids. |
protected java.util.Vector |
defaultDebugChannels
Default debug channels to be added to every logger. |
protected java.util.Vector |
defaultLogChannels
Default log channels to be added to every logger. |
protected java.util.Hashtable |
logChannels
The log channels mapped to the appropriate logger ids. |
| Constructor Summary | |
|---|---|
LoggerFactory()
Create a new instance of LoggerFactory. |
|
| Method Summary | |
|---|---|
void |
addDefaultDebugChannels(java.util.Vector theLogChannels)
Add default channels to write the debug messages to. |
void |
addDefaultLogChannels(java.util.Vector theLogChannels)
Add default channels to write the log messages to. |
protected abstract java.util.Vector |
getDebugChannels(java.lang.String loggerID)
Create and store any new debug channels associated with the new log id. |
static java.lang.String |
getDebugLevel()
Get the level to debug messages to. |
protected java.util.Vector |
getDefaultDebugChannels()
Get any default channels to write the debug messages to. |
protected java.util.Vector |
getDefaultLogChannels()
Get any default channels to write the log messages to. |
protected abstract java.util.Vector |
getLogChannels(java.lang.String loggerID)
Create and store any new log channels associated with the new log id. |
abstract Logger |
getLoggerInstance(java.lang.String loggerID)
Create a new instance of Logger. |
static java.lang.String |
getLogLevel()
Get the level to log messages to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector defaultLogChannels
protected java.util.Vector defaultDebugChannels
protected java.util.Hashtable logChannels
protected java.util.Hashtable debugChannels
| Constructor Detail |
|---|
public LoggerFactory()
throws java.lang.Exception
java.lang.Exception - any error.| Method Detail |
|---|
public abstract Logger getLoggerInstance(java.lang.String loggerID)
loggerID - the id to identify one logger from another.
public void addDefaultLogChannels(java.util.Vector theLogChannels)
theLogChannels - the channels to write the log messages to.
Of type LogChannel.public void addDefaultDebugChannels(java.util.Vector theLogChannels)
theLogChannels - the channels to write the debug messages to.
Of type LogChannel.protected java.util.Vector getDefaultLogChannels()
protected java.util.Vector getDefaultDebugChannels()
protected abstract java.util.Vector getLogChannels(java.lang.String loggerID)
loggerID - the id to identify one logger from another.
protected abstract java.util.Vector getDebugChannels(java.lang.String loggerID)
loggerID - the id to identify one logger from another.
public static java.lang.String getLogLevel()
public static java.lang.String getDebugLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||