mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update file rotation property, TODO: move to config
This commit is contained in:
parent
97c3ce86f6
commit
5a1f5954c5
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user