Package javatapas.util
Class CreateLoggerFromPropertiesFile
java.lang.Object
javatapas.util.CreateLoggerFromPropertiesFile
public class CreateLoggerFromPropertiesFile extends Object
Load a Logger object with properties from a Text File using LogManager.
Published at https://www.javatapas.com/util/Java-Create-Logger-From-Properties-File.html
Javadoc at https://www.javatapas.com/docs/javatapas/util/CreateLoggerFromPropertiesFile.html
Published at https://www.javatapas.com/util/Java-Create-Logger-From-Properties-File.html
Javadoc at https://www.javatapas.com/docs/javatapas/util/CreateLoggerFromPropertiesFile.html
- Version:
- 2021-05-29
- Author:
- Kodiak Brown
- See Also:
- https://docs.oracle.com/cd/E23549_01/doc.1111/e14568/handler.htm
-
Constructor Summary
Constructors Constructor Description CreateLoggerFromPropertiesFile()
-
Method Summary
Modifier and Type Method Description Logger
createLoggerFromPropertiesFile(String logConfigFileName)
Load a Logger object with properties from a Text File.
-
Constructor Details
-
CreateLoggerFromPropertiesFile
public CreateLoggerFromPropertiesFile()
-
-
Method Details
-
createLoggerFromPropertiesFile
Load a Logger object with properties from a Text File. Some example properties in the text file could be: handlers= java.util.logging.ConsoleHandler java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$-6s %2$s %5$s%6$s%n java.util.logging.ConsoleHandler.level = ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter- Parameters:
logConfigFileName
- The name of the text file containing correctly marked up properties with log configuration settings.- Throws:
IOException
-