com.sun.enterprise.server.logging
Class LogManagerService

java.lang.Object
  extended by com.sun.enterprise.server.logging.LogManagerService
All Implemented Interfaces:
Init, LogManager, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy

@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class LogManagerService
extends java.lang.Object
implements Init, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy, LogManager

Reinitialzie the log manager using our logging.properties file.

Author:
Jerome Dochez, Carla Mott, Naman Mehta

Constructor Summary
LogManagerService()
           
 
Method Summary
 void addHandler(java.util.logging.Handler handler)
           
 void generateAttributeChangeEvent(java.lang.String property, java.lang.String propertyDetail, java.util.Map props)
           
 java.io.File getLoggingFile()
           
 java.util.Map<java.lang.String,java.lang.String> getLoggingProperties()
           
 void postConstruct()
          Initialize the loggers
 void preDestroy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogManagerService

public LogManagerService()
Method Detail

getLoggingProperties

public java.util.Map<java.lang.String,java.lang.String> getLoggingProperties()
                                                                      throws java.io.IOException
Specified by:
getLoggingProperties in interface LogManager
Throws:
java.io.IOException

getLoggingFile

public java.io.File getLoggingFile()
                            throws java.io.IOException
Specified by:
getLoggingFile in interface LogManager
Throws:
java.io.IOException

postConstruct

public void postConstruct()
Initialize the loggers

Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

generateAttributeChangeEvent

public void generateAttributeChangeEvent(java.lang.String property,
                                         java.lang.String propertyDetail,
                                         java.util.Map props)

addHandler

public void addHandler(java.util.logging.Handler handler)
Specified by:
addHandler in interface LogManager

preDestroy

public void preDestroy()
Specified by:
preDestroy in interface org.jvnet.hk2.component.PreDestroy


Copyright © 2012 GlassFish Community. All Rights Reserved.