Added compression of program logs [#CONV-2833].

This commit is contained in:
Alexey Milovidov 2011-07-27 19:36:02 +00:00
parent 7e0d8039ee
commit 8789c0a8ca

View File

@ -128,6 +128,7 @@ void Daemon::buildLoggers()
file->setProperty("path", Poco::Path(config().getString("logger.log")).absolute().toString());
file->setProperty("rotation", config().getRawString("logger.size", "100M"));
file->setProperty("archive", "number");
file->setProperty("compression", "true");
file->setProperty("purgeCount", config().getRawString("logger.count", "1"));
log->setChannel(file);
split->addChannel(log);