/**
* {@inheritDoc}
*/
@Override
public void initializeLogging() {
LoggingConfig lLoggingConfig = mConfig.getLoggingConfig();
// initialize log4j logging engine
// BEFORE instantiating any jWebSocket classes
Logging.initLogs(lLoggingConfig.getLevel(), lLoggingConfig.getAppender(),
lLoggingConfig.getFilename(), lLoggingConfig.getPattern(),
lLoggingConfig.getBufferSize(),
new String[]{"%JWEBSOCKET_HOME%/logs", "%CATALINA_HOME%/logs"});
mLog = Logging.getLogger(JWebSocketXmlConfigInitializer.class);
if (mLog.isDebugEnabled()) {
mLog.debug("Logging settings"
+ ": appender: " + lLoggingConfig.getAppender()
+ ", filename: " + lLoggingConfig.getFilename()
+ ", level: " + lLoggingConfig.getLevel()
+ ", buffersize: " + lLoggingConfig.getBufferSize()
+ ", pattern: " + lLoggingConfig.getPattern());
}
if (mLog.isDebugEnabled()) {
mLog.debug("Starting jWebSocket Server Sub System...");
}
}