public abstract class AbstractLogger extends PropertyResources implements Logging
Logging interface. Any logger,
should extend this class and provide implementation to the crucial
logger methods.
This class allows construction of a logger with a Map object for convenience of further use.
PropertyResources.Load, PropertyResources.URLResourceKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLogger(Map<String,String> prop)
Constructs a new logger with the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
static Logging |
createLogger(Map<String,String> prop)
Constructs a new logging instance using the mapping of the
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate. |
Thread |
getAsociatedThread()
Returns null.
|
Thread |
getLoggerThread(ThreadGroup group)
Returns null.
|
long |
maxTimeToCancel()
Returns zero.
|
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitderegisterCaster, registerCasterdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesprotected AbstractLogger(Map<String,String> prop)
PropertySupplying.KEY_CLASS is always specified when this constructer is
used.public static final Logging createLogger(Map<String,String> prop)
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate.
If this property is defined, a new logging instance with the stated
class name is created, the supplied properties used as an argument in
the constructor. Can throw a lot of exceptions if unsuccessful.public Thread getLoggerThread(ThreadGroup group)
getLoggerThread in interface Logginggroup - The thread group the logger must run in.public Thread getAsociatedThread()
public long maxTimeToCancel()
getAsociatedThread()