Class CreateLoggerFromPropertiesFile

java.lang.Object
javatapas.util.CreateLoggerFromPropertiesFile

public class CreateLoggerFromPropertiesFile
extends Object
Version:
2021-05-29
Author:
Kodiak Brown
See Also:
https://docs.oracle.com/cd/E23549_01/doc.1111/e14568/handler.htm
  • Constructor Details

    • CreateLoggerFromPropertiesFile

      public CreateLoggerFromPropertiesFile()
  • Method Details

    • createLoggerFromPropertiesFile

      public Logger createLoggerFromPropertiesFile​(String logConfigFileName) throws IOException
      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