Java Logging Documentation

Hiran Chaudhuri hiran.chaudhuri at gmx.net
Fri Jun 17 07:39:37 UTC 2022


Hello there.

Switching from log4j2 towards Java Logging (one dependency less), I
notice that the documentation at
https://docs.oracle.com/en/java/javase/18/core/java-logging-overview.html#GUID-B83B652C-17EA-48D9-93D2-563AE1FF8EDA
is not very useful to me.

While I know very well how to configure log4j through properties or XML
files, for Java Logging a configuration file/properties is mentioned,
but I do not see
- the structure of the file (what properties should or have to be set?)
- where should the file go (or where will the logging framework be
searching for it?)
- examples of logging configuration via configuration file (currently
there are just API examples)

I'd be glad if that documentation could be extended in this respect.

Hiran



More information about the core-libs-dev mailing list