Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

LogManager getLogManager() method in Java with Examples

  • Last Updated : 29 Oct, 2019

The getLogManager() method of java.util.logging.LogManager is used to get the global LogManager object


Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more,  please refer Complete Interview Preparation Course.

public static LogManager getLogManager()

Parameters: This method does not accepts any parameter.

Return Value: This method returns the global LogManager object.

Below programs illustrate getLogManager() method:

// Java program to illustrate
// LogManager getLogManager() method
import java.util.logging.*;
public class GFG {
    public static void main(String[] args)
        // Create LogManager object
        LogManager logManager
            = LogManager.getLogManager();
        System.out.println("Global LogManager object: "
                           + logManager);
Global LogManager object: java.util.logging.LogManager@1540e19d


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!