Skip to main content
Fixed link
Source Link
Dominic Cronin
  • 18.5k
  • 3
  • 23
  • 74

I'm trying to figure out if there is a way limit the size of log files within the logback.xml configuration file.

I've reviewed the SDL documentation, which points me to the official documentation (herehere), which suggests adding the following:

<appender>
...
<maxFileSize>5MB</maxFileSize>
...
</appender>

But after restarting the services, I can see my file has grown more than I've configured. Does anyone have an example of their logback.xml showing a working / restricted files?

I'm trying to figure out if there is a way limit the size of log files within the logback.xml configuration file.

I've reviewed the SDL documentation, which points me to the official documentation (here), which suggests adding the following:

<appender>
...
<maxFileSize>5MB</maxFileSize>
...
</appender>

But after restarting the services, I can see my file has grown more than I've configured. Does anyone have an example of their logback.xml showing a working / restricted files?

I'm trying to figure out if there is a way limit the size of log files within the logback.xml configuration file.

I've reviewed the SDL documentation, which points me to the official documentation (here), which suggests adding the following:

<appender>
...
<maxFileSize>5MB</maxFileSize>
...
</appender>

But after restarting the services, I can see my file has grown more than I've configured. Does anyone have an example of their logback.xml showing a working / restricted files?

Tweeted twitter.com/#!/StackTridion/status/636404261790855168
edited tags
Link
Glenn Stevens
  • 1.9k
  • 2
  • 18
  • 33
Source Link
johnwinter
  • 14.3k
  • 2
  • 26
  • 73

Logback.xml - limit the size of files

I'm trying to figure out if there is a way limit the size of log files within the logback.xml configuration file.

I've reviewed the SDL documentation, which points me to the official documentation (here), which suggests adding the following:

<appender>
...
<maxFileSize>5MB</maxFileSize>
...
</appender>

But after restarting the services, I can see my file has grown more than I've configured. Does anyone have an example of their logback.xml showing a working / restricted files?