Hello,
in the past it was possible to configure the log level for the MPA in the web interface. This then changed to a file based configuration in (according to our wiki) /usr/share/djigzo/conf/log4j.properties.
In the current version of Ciphermail, this file doesn’t exist anymore and the file log4j2.xml doesn’t look like a configuration file for log levels.
Is there still a chance to modify the log level?
This was changed when Log4J was upgraded to version 2. Version 2 no longer allowed the log levels to be set programmatically (at least not in an easy way). To change log levels, you now need to edit the log4j config file directly
/usr/share/djigzo/conf/log4j2.xml
Changes to the log file will be checked every 60 seconds so you do not have to restart the back-end.
Aug 23 10:15:26 ciphermail-gateway ciphermail-gateway-backend[900]: 2024-08-23 10:15:26,248 Log4j2-TF-5-ConfiguratonFileWatcher-6 INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
Aug 23 10:15:26 ciphermail-gateway ciphermail-gateway-backend[900]: ScriptEngineManager providers.hasNext(): javax.script.ScriptEngineFactory: Error reading configuration file
Could you please give me a hint on how to modify the file correctly?
Aug 23 10:15:26 ciphermail-gateway ciphermail-gateway-backend[900]: 2024-08-23 10:15:26,248 Log4j2-TF-5-ConfiguratonFileWatcher-6 INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
Not sure where this come from:
Aug 23 10:15:26 ciphermail-gateway ciphermail-gateway-backend[900]: 2024-08-23 10:15:26,248 Log4j2-TF-5-ConfiguratonFileWatcher-6 INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
Aug 23 10:15:26 ciphermail-gateway ciphermail-gateway-backend[900]: ScriptEngineManager providers.hasNext(): javax.script.ScriptEngineFactory: Error reading configuration file
Are you certain that the debug logging does not work?
Can the log level be influenced so that the MPA log also shows which certificate was used for signing or encryption? Or can this still only be determined from the email header?