This is an automated email from the ASF dual-hosted git repository.

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git

commit 0fca522a1d336f4ef6305681aba71099799fe89d
Author: Thomas Vandahl <[email protected]>
AuthorDate: Thu Feb 12 22:47:04 2026 +0100

    Add configuration hints for the logging formatter
---
 xdocs/UpgradingFrom3x.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xdocs/UpgradingFrom3x.xml b/xdocs/UpgradingFrom3x.xml
index 7bbd2e8d..82bf9c47 100644
--- a/xdocs/UpgradingFrom3x.xml
+++ b/xdocs/UpgradingFrom3x.xml
@@ -93,8 +93,13 @@ 
jcs.default.cacheattributes=org.apache.commons.jcs4.engine.CompositeCacheAttribu
       <subsection name="Logging">
         <p>
           JCS 4.0.0 uses the JDK9+ System.Logger interface for logging.
-          By default, JCS uses java.util.logging as implementation.
+          By default, JCS uses java.util.logging as implementation. For a 
better readability
+          we recommend to configure the logger formatting like this:
         </p>
+        <source><![CDATA[
+java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
+java.util.logging.SimpleFormatter.format=[%1$tF %1$tT] %3$s [%4$-7s] %5$s %n
+]]></source>
         <p>
           If you want to use Log4j2 as a log implementation, for example, you 
can activate 
           it by providing log4j-jpl as a runtime dependency and a log 
configuration

Reply via email to