hirondelle.web4j.webmaster
Class LoggingConfigImpl
Object
hirondelle.web4j.webmaster.LoggingConfigImpl
- All Implemented Interfaces:
- LoggingConfig
public final class LoggingConfigImpl
- extends Object
- implements LoggingConfig
Default implementation of LoggingConfig
, to set up simple logging.
This implementation uses JDK logging, and appends logging output to a single file,
with no size limit on the file. It uses two settings in web.xml:
- LoggingDirectory - the absolute directory which will hold the logging
output file. This class will always use a file name using the system date/time, as
returned by
DateTime.now(TimeZone)
using the DefaultUserTimeZone setting in
web.xml, in the form 2007_12_31_59_59.txt. If the directory does not exist, WEB4J will
attempt to create it upon startup. If set to the special value of 'NONE', then
this class will not configure JDK logging in any way.
- LoggingLevels - a comma-separated list of logger names and their corresponding
levels. To verify operation, this class will emit test logging entries for each of these loggers,
at the stated logging levels.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingConfigImpl
public LoggingConfigImpl()
setup
public void setup(Map<String,String> aConfig)
throws AppException
- See class comment.
- Specified by:
setup
in interface LoggingConfig
- Parameters:
aConfig
- - in a servlet environment, this map will hold the init-param items for the servlet,
as stated in web.xml.
- Throws:
AppException
Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.