Skip to content

Tag Archives: java.util.logging package

The readConfiguration() method of java.util.logging.LogManager is used to read and initialize the deafult configuration. This method throws IOException and SecurityException if the excpetion condition occurs,… Read More
The getLoggerNames() method of java.util.logging.LogManager is used to get a list of known logger names. This method returns this list in the form of an… Read More
The addLogger() method of java.util.logging.LogManager is used to insert the specified Logger in this LogManager instance. This Logger must be a named Logger. This method… Read More
The getProperty() method of java.util.logging.LogManager is used to get the value of the specified propertyName in this LogManager instance. This method will get this property… Read More
The getLogger() method of java.util.logging.LogManager is used to get the specified Logger in this LogManager instance. This Logger must be a named Logger. This method… Read More
The getLogManager() method of java.util.logging.LogManager is used to get the global LogManager object Syntax: public static LogManager getLogManager() Parameters: This method does not accepts any… Read More
The checkAccess() method of java.util.logging.LogManager is used to check if this context has the permissions to modify the logging configuration, which requires LoggingPermission(“control”). This method… Read More
The reset() method of java.util.logging.LogManager is used to reset the logging configuration. This method throws SecurityException if the exception condition occurs, as given below Syntax:… Read More
The getSourceClassName() method of java.lang.reflect.LogRecord is used to get the name of the class that allegedly issued the logging request. The source class name which… Read More
The getThreadID() method of java.lang.reflect.LogRecord is used to get an identifier for the thread where the message originated. This method is helpful to identify thread… Read More
The getParameters() method of java.lang.reflect.LogRecord is used to get the parameters to the log message.These parameters are the parameters to be inserted into the message… Read More
The getMillis() method of java.lang.reflect.LogRecord is used to get the event time in LogRecord.This event time has unit in MilliSeconds since 1970. Syntax: public long… Read More
The getThrown() method of java.lang.reflect.LogRecord is used to get a throwable associated with the log event.This is used to log Exceptions in the logRecord that… Read More
The getSequenceNumber() method of java.lang.reflect.LogRecord is used to get the sequence number to LogRecord for logging purpose. Syntax: public long getSequenceNumber() Parameters: This method accepts… Read More
The getResourceBundleName() method of java.lang.reflect.LogRecord is used to get the localization resource bundle name. Syntax: public String getResourceBundleName() Parameters: This method accepts nothing. Return: This… Read More