-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Currently, the logging directory specified in logback-spring.xml are restricted directories which the application might not have access to in this case, it fails with a fileNotFound caused due to insufficient permissions. Ideally these log files should be in the scope of the sask application. Hence its desirable to be in a configurable directory, rather than hard coding them.
<logback.dir>/logs/</logback.dir>
<logback.archive>/logs/archived/</logback.archive>
<properties>
<logback.dir>C:/logs/</logback.dir>
<logback.archive>C:/logs/archived/</logback.archive>
</properties>
One of the suggested option is to have these logs in the parent sask folder like or have an enviroment variable providing even more flexibilty
<properties>
<logback.dir>${project.basedir}/logs/</logback.dir>
<logback.archive>${project.basedir}/logs/archived/</logback.archive>
</properties>
By doing so, we can get away from linux and windows profiles.
Let me know your thoughts on the same.
Reactions are currently unavailable