| | |
| | | { |
| | | private TextWriter writer; |
| | | private FileBasedErrorLogPublisherCfg currentConfig; |
| | | private ServerContext serverContext; |
| | | |
| | | /** |
| | | * Returns a new text error log publisher which will print all messages to the |
| | |
| | | public void initializeLogPublisher(FileBasedErrorLogPublisherCfg config, ServerContext serverContext) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | this.serverContext = serverContext; |
| | | File logFile = getLogFile(config); |
| | | FileNamingPolicy fnPolicy = new TimeStampNaming(logFile); |
| | | |
| | |
| | | |
| | | currentConfig = config; |
| | | } |
| | | serverContext.getLoggerConfigManager().adjustJulLevel(); |
| | | } |
| | | catch(Exception e) |
| | | { |