update file rotation property, TODO: move to config

This commit is contained in:
Dario 2019-10-18 13:00:15 +02:00
parent 97c3ce86f6
commit 5a1f5954c5

View File

@ -106,7 +106,7 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
<n> K: rotate if file size exceeds <n> Kilobytes
<n> M: rotate if file size exceeds <n> Megabytes
*/
speedLogFileChannel->setProperty("rotation", "2 K");
speedLogFileChannel->setProperty("rotation", "500 K");
Poco::AutoPtr<Poco::AsyncChannel> speedLogAsyncChannel(new Poco::AsyncChannel(speedLogFileChannel));
Poco::Logger& speedLogger = Poco::Logger::get("SpeedLog");
@ -140,6 +140,7 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
// logging for request handling
Poco::AutoPtr<Poco::ConsoleChannel> requestLogConsoleChannel(new Poco::ConsoleChannel);
Poco::AutoPtr<Poco::SimpleFileChannel> requestLogFileChannel(new Poco::SimpleFileChannel("requestLog.txt"));
requestLogFileChannel->setProperty("rotation", "500 K");
Poco::AutoPtr<Poco::SplitterChannel> requestLogSplitter(new Poco::SplitterChannel);
requestLogSplitter->addChannel(requestLogConsoleChannel);
requestLogSplitter->addChannel(requestLogFileChannel);