LogManager reset() method in Java with Examples Last Updated : 29 Oct, 2019 Comments Improve Suggest changes Like Article Like Report 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: 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: Java // Java program to illustrate // LogManager reset() method import java.util.logging.*; import java.util.*; public class GFG { public static void main(String[] args) { try { // Create LogManager object LogManager logManager = LogManager.getLogManager(); System.out.println("LogManager: " + logManager); System.out.println("Resetting the logging configuration"); // Resetting the logging configuration // using reset() method logManager.reset(); } catch (Exception e) { System.out.println(e); } } } Output: LogManager: java.util.logging.LogManager@1540e19d Resetting the logging configuration java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control") Reference: https://docs.oracle.com/javase/9/docs/api/java/util/logging/LogManager.html#reset-- Comment More infoAdvertise with us Next Article LogManager reset() method in Java with Examples G guptayashgupta53 Follow Improve Article Tags : Java Java-Functions java.util.logging package Java-LogManager Practice Tags : Java Similar Reads LongAdder reset() method in Java with Examples LongAdder class in Java creates a new adder with an initial sum of zero. The Java.LongAdder.reset() is an inbuilt method in Java that resets the sum to zero. When the object of the class is created its initial value is zero. Syntax: public void reset() Parameters: The function does not accepts any p 2 min read LongBuffer reset() method in Java with Examples The reset() method of java.nio.LongBuffer Class is used to reset this buffer's position to the previously-marked position. The mark's value remain unchanged during this process. Syntax: public final LongBuffer reset() Parameter: This method do not accept any parameter. Return Value: This method retu 2 min read Matcher reset() Method in Java with Examples The reset() method of Matcher Class is used to reset this matcher, in order to understand it better it is recommended to have prior knowledge of Pattern and Matcher class in java regex sub-package. Here we will be illustrating it with help of Java programs. Syntax: public Matcher reset() Parameters: 2 min read Logger setLevel() method in Java with Examples setLevel() method of a Logger class used to set the log level to describe which message levels will be logged by this logger. The level we want to set is passed as a parameter. Message levels lower than passed log level value will be discarded by the logger. The level value Level.OFF can be used to 2 min read Logger setFilter() method in Java with Examples setFilter() method of a Logger class is used to set a filter to control output on this Logger. The filter is passed as a parameter. A Filter is useful to filter out log messages. It can be said that the filter decides the message gets to be logged or not. Filters are represented by the Java interfac 2 min read Like