I am using a Logger along with a FileChannel. I want the LogFile to be rotated at midnight (utc) every day.
The PropertyFileConfiguration below does not seem to work, the file is not rotated.
It works well with other rotation stategy, not with the RotateAtTimeStrategy.
Am I messing something up ?
- Code: Select all
static const std::string config =
"logging.loggers.l1.name = detail\n"
"logging.loggers.l1.channel = detail\n"
"logging.loggers.l1.level = trace\n"
"logging.channels.detail.class = FileChannel\n"
"logging.channels.detail.path = details.log\n"
"logging.channels.detail.rotation = 00:00\n"
"logging.channels.detail.archive = timestamp\n"
"logging.channels.detail.times = utc\n"
"logging.channels.detail.compress = true\n";