LogManager getLoggerNames() method in Java with Examples
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 Enumeration 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 Enumeration getLoggerNames()
Parameters: This method does not accepts any parameter.
Return Value: This method returns list of known logger names list in the form of an Enumeration object.
Below programs illustrate getLoggerNames() method:
List of Logger Names: global
List of Logger Names: GFG global