Hi,

I'm a bit confused about the current contents of the default log4j2.xml 
<https://github.com/apereo/cas/blame/master/webapp/cas-server-webapp-resources/src/main/resources/log4j2.xml>.
 
So before making a pull request, I will rather ask here...

In rfeea2ae7cad65 
<https://github.com/apereo/cas/commit/feea2ae7cad6574b73c8bcab592bcf040fc56302>,
 
the DefaultRolloverStrategy with a nested Delete element was added to every 
file appender. So far so good. But what I don't quite understand, resp. 
what doesn't work for me:

1) Purpose of `compressionLevel`. According to Log4j documentation 
<http://logging.apache.org/log4j/2.x/manual/appenders.html>, this only 
applies when "zip" format compression is activated, so this attribute seems 
useless.

2) Pattern for Delete is set to "*/*.log.gz", but filePattern doesn't seem 
to enforce any kind of compression, it always ends just with ".log". So 
when there is no compression happening, no files can be actually deleted?

3) (Subjective) The default time-range for rolling is set to hours (`HH`) - 
is this really practical for most deployments? Wouldn't it suffice to use 
just days (`DD`)?

4) Lastly, there is also an example log4j2.xml 
<https://github.com/apereo/cas-overlay-template/blob/master/etc/cas/config/log4j2.xml>
 
in the officially recommended overlay template. I wonder which of these 2 
xml files should be updated then? There doesn't seem to be an ongoing 
synchronization of these files in the recent years...

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3c0af9f1-948d-48f9-b126-6a5e36219f1fn%40apereo.org.

Reply via email to