Tutorial für Java Logging mit JUL
in Arbeit …
public class JulConfDemo {
public static void main(String[] args) {
String logConfFilePath = System.getProperty("java.util.logging.config.file");
if (logConfFileTxt == null) {
System.setProperty("java.util.logging.config.file", "myLogging.properties");
logConfFileTxt = System.getProperty("java.util.logging.config.file");
}
Logger logger = Logger.getLogger(CL.getName());
LogManager manager = LogManager.getLogManager();
try {
manager.readConfiguration(new FileInputStream(logConfFilePath));
} catch (IOException e) {
logger.warning(e.getMessage());
}
}
}
TODO: Prüfen + ergänzen
https://blog.devgenius.io/logging-in-java-log4j-vs-logback-vs-slf4j-88c533088d2a [Logging in Java — Log4j vs Logback vs SLF4J | by Dineshchandgr | Jun, 2022 | Dev Genius] … 2022-08-02
https://www.educba.com/log4j-vs-logback/ [Log4j vs Logback | Top 10 Differences You Should Know] … 2022-08-02
https://www.slf4j.org/log4shell.html [SLF4J - Comments on the log4shell(CVE-2021-44228) vulnerability] … 2022-08-02
https://tomcat.apache.org/tomcat-8.5-doc/logging.html [Apache Tomcat 8 (8.5.81) - Logging in Tomcat] … 2022-08-02
https://javabeginners.de/Allgemeines/Logging/Einfaches_Logging.php [Javabeginners - Einfaches Logging] … 2022-08-10
https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/StreamHandler.html [StreamHandler (Java SE 17 & JDK 17)] … 2022-08-10
https://docs.oracle.com/javase/7/docs/api/java/util/logging/StreamHandler.html [StreamHandler (Java Platform SE 7 )] … 2022-08-10
https://www.loggly.com/ultimate-guide/java-logging-basics/ [Java Logging Basics |] … 2022-08-10