LogManager getProperty() method in Java with Examples Last Updated : 29 Oct, 2019 Comments Improve Suggest changes Like Article Like Report 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. Syntax: 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: Java // Java program to illustrate // LogManager getProperty() method import java.util.logging.*; import java.util.*; public class GFG { public static void main(String[] args) { // Create LogManager object LogManager logManager = LogManager.getLogManager(); String propertyName = "GFG"; System.out.println( "\nGet Property value of " + propertyName + ": " + logManager.getProperty(propertyName)); propertyName = "Global"; System.out.println( "\nGet Property value of " + propertyName + ": " + logManager.getProperty(propertyName)); } } Output: Get Property value of GFG: null Get Property value of Global: null Reference: https://docs.oracle.com/javase/9/docs/api/java/util/logging/LogManager.html#getProperty-java.lang.String- Comment More infoAdvertise with us Next Article LogManager getProperty() 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 LogManager getLogger() method in Java with Examples The getLogger() method of java.util.logging.LogManager is used to get the specified Logger in this LogManager instance. This Logger must be a named Logger. This method will get this Logger in this LogManager if it exists. If it does not exists, then this method returns null. Syntax: public Logger ge 2 min read Logger getParent() Method in Java with Examples getParent() method of a Logger class is used to get the parent of this Logger.This method returns the nearest extant parent in the namespace.if there is a Logger called "com.javac.core.api", and a Logger called "com.javac" has been created but no logger "com.javac.core" exists, then a call of getPar 2 min read LogManager getLogManager() method in Java with Examples The getLogManager() method of java.util.logging.LogManager is used to get the global LogManager object Syntax: public static LogManager getLogManager() Parameters: This method does not accepts any parameter. Return Value: This method returns the global LogManager object. Below programs illustrate ge 1 min read Logger getLogger() Method in Java with Examples The getLogger() method of a Logger class used find or create a logger. If there is a logger exists with the passed name then the method will return that logger else method will create a new logger with that name and return it. There are two types of getLogger() method depending upon no of the parame 4 min read 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. Syntax: public Enumeration getLoggerNames() Parameters: This method does not accepts any parameter. Return Value: This method r 1 min read Like