I'm trying to configure CAS 5 to roll its log files daily. This is an
excerpt for cas.log from log4j2.xml based on the the log4j2 documentation
here

<https://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender>

    <RollingFile name="file" fileName="/path/to/cas/logs/cas.log" append="true"
                 filePattern="/path/to/cas/logs/cas.log.%d{yyyy-MM-dd}">
        <PatternLayout pattern="%d %p [%c] - &lt;%m&gt;%n"/>
        <Policies>
            <OnStartupTriggeringPolicy />
            <SizeBasedTriggeringPolicy />
            <TimeBasedTriggeringPolicy interval="1" modulate="true" />
        </Policies>
    </RollingFile>

But when CAS starts up, I see the following:

2016-10-10 17:32:02,461 localhost-startStop-1 ERROR Unable to move file 
/home/cas/cas/logs/cas.log.2016-10-10 to /home/cas/cas/logs/cas.log.2016-10-10: 
java.nio.file.NoSuchFileException /home/cas/cas/logs/cas.log.2016-10-10 -> 
/home/cas/cas/logs/cas.log.2016-10-10
2016-10-10 17:32:02,464 localhost-startStop-1 ERROR Unable to copy file 
/home/cas/cas/logs/cas.log.2016-10-10 to /home/cas/cas/logs/cas.log.2016-10-10: 
java.nio.file.NoSuchFileException /home/cas/cas/logs/cas.log.2016-10-10

I don't understand 

1) why it's trying to move (and copy?) cas.log.2016-10-10 to
cas.log.2016-10-10

2) why the NoSuchFileException when
$ ls -go /path/to/cas/logs/cas.log.2016-10-10
-rw-r--r--. 1 641647 Oct 10 17:32 /home/cas/cas/logs/cas.log.2016-10-10

-baron
-- 
Baron Fujimoto <[email protected]> :: UH Information Technology Services
minutas cantorum, minutas balorum, minutas carboratum desendus pantorum

-- 
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
--- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/20161011034256.GS23083%40praenomen.mgt.hawaii.edu.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to