[GH-ISSUE #1] Log output is huge #1

Closed
opened 2026-02-26 01:32:45 +03:00 by kerem · 2 comments
Owner

Originally created by @codecleric on GitHub (Mar 13, 2017).
Original GitHub issue: https://github.com/jberrenberg/docker-davmail/issues/1

Thanks a lot for making this docker setup!

My davmail.properties has the following in the Log setup:

# Loggings settings

# log file path, leave empty for default path
#davmail.logFilePath=/var/log/davmail.log
davmail.logFilePath=/dev/null
# maximum log file size, use Log4J syntax, set to 0 to use an external rotation mechanism, e.g. logrotate
#davmail.logFileSize=1MB
davmail.logFileSize=1MB
# log levels
log4j.logger.davmail=WARN, default.out
log4j.logger.httpclient.wire=WARN, default.out
log4j.logger.org.apache.commons.httpclient=WARN, default.out
log4j.rootLogger=WARN, default.out
log4j.appender.default.out=org.apache.log4j.ConsoleAppender
log4j.appender.default.out.threshold=INFO
log4j.appender.default.out.layout=org.apache.log4j.PatternLayout
log4j.appender.default.out.layout.ConversionPattern=%-5p %c: %m%n

But DEBUG style logs are pouring out of the container, so much that in the last 2 months, it created a 325GB log file. What else can I look at?

Thanks!

Originally created by @codecleric on GitHub (Mar 13, 2017). Original GitHub issue: https://github.com/jberrenberg/docker-davmail/issues/1 Thanks a lot for making this docker setup! My davmail.properties has the following in the Log setup: ``` # Loggings settings # log file path, leave empty for default path #davmail.logFilePath=/var/log/davmail.log davmail.logFilePath=/dev/null # maximum log file size, use Log4J syntax, set to 0 to use an external rotation mechanism, e.g. logrotate #davmail.logFileSize=1MB davmail.logFileSize=1MB # log levels log4j.logger.davmail=WARN, default.out log4j.logger.httpclient.wire=WARN, default.out log4j.logger.org.apache.commons.httpclient=WARN, default.out log4j.rootLogger=WARN, default.out log4j.appender.default.out=org.apache.log4j.ConsoleAppender log4j.appender.default.out.threshold=INFO log4j.appender.default.out.layout=org.apache.log4j.PatternLayout log4j.appender.default.out.layout.ConversionPattern=%-5p %c: %m%n ``` But DEBUG style logs are pouring out of the container, so much that in the last 2 months, it created a 325GB log file. What else can I look at? Thanks!
kerem closed this issue 2026-02-26 01:32:45 +03:00
Author
Owner

@jberrenberg commented on GitHub (Mar 15, 2017):

Hi @codecleric,

i am sorry, but i have no idea why your log files are exploding.
In my setup, there is like 20K of logs for the last 20 days.
The following are the only logging related settings i use:

davmail.logFilePath=/var/log/davmail/davmail.log
log4j.logger.davmail=INFO
log4j.logger.httpclient.wire=INFO
log4j.logger.org.apache.commons.httpclient=INFO
log4j.rootLogger=INFO

Regards

<!-- gh-comment-id:286769835 --> @jberrenberg commented on GitHub (Mar 15, 2017): Hi @codecleric, i am sorry, but i have no idea why your log files are exploding. In my setup, there is like 20K of logs for the last 20 days. The following are the only logging related settings i use: ```properties davmail.logFilePath=/var/log/davmail/davmail.log log4j.logger.davmail=INFO log4j.logger.httpclient.wire=INFO log4j.logger.org.apache.commons.httpclient=INFO log4j.rootLogger=INFO ``` Regards
Author
Owner

@codecleric commented on GitHub (Mar 15, 2017):

I replaced what I had with what you have and the logs have become reasonable... Thanks!

<!-- gh-comment-id:286870275 --> @codecleric commented on GitHub (Mar 15, 2017): I replaced what I had with what you have and the logs have become reasonable... Thanks!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-davmail-jberrenberg#1
No description provided.