The getProperty() method of java.util.logging.LogManager is used to get the value of the specified propertyName in this LogManager instance. This method will get this property in this LogManager if it exists. If it does not exists, then this method returns null.
public String getProperty(String propertyName)
Parameters: This method accepts a parameter propertyName which is the name of the property to be get in this LogManager instance.
Return Value: This method returns the name of this property in this LogManager if it exists. If it does not exists, then this method returns null.
Below programs illustrate getProperty() method:
Get Property value of GFG: null Get Property value of Global: null
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.