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.
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
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.