LogManager reset() method in Java with Examples
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
public void reset() throws SecurityException
Parameters: This method does not accepts any parameter.
Return Value: This method does not return anything. It just resets the logging configuration.
Exceptions: This method throws following exceptions:
- SecurityException: if a security manager exists while the caller does not have logging permissions.
Below programs illustrate reset() method:
LogManager: java.util.logging.LogManager@1540e19d Resetting the logging configuration java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control")