java.lang.Object
java.util.logging.LogManager
- See Also:
- Top Examples, Source Code
public boolean addLogger(Logger logger)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void addPropertyChangeListener(PropertyChangeListener l)
throws SecurityException
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void checkAccess()
throws SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Logger getLogger(String name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[520]Logging example
By Anonymous on 2003/11/17 09:43:19 Rate
import java.util.logging.*;
try {
Handler logHandler = new FileHandler ( "example.log" ) ;
} catch ( IOException ioe ) {
// Handle exception
}
LogManager lm = LogManager.getLogManager ( ) ;
lm.addGlobalHandler ( logHandler ) ;
lm.setLevel ( "loggerExample", Level.FINEST ) ;
Logger logger = Logger.getLogger ( "loggerExample" ) ;
logger.fine ( "User " + loginId + "logged in" ) ;
logger.log ( Level.WARNING, "Bad password entered 3 times" ) ;
public Enumeration<String> getLoggerNames()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static LoggingMXBean getLoggingMXBean()
- See Also:
ManagementFactory
, platform MBeanServer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static LogManager getLogManager()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getProperty(String name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final String LOGGING_MXBEAN_NAME
- See Also:
LoggingMXBean
, ObjectName
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected LogManager()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void readConfiguration()
throws IOException,
SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void readConfiguration(InputStream ins)
throws IOException,
SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removePropertyChangeListener(PropertyChangeListener l)
throws SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void reset()
throws SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples