MAX_LOG_FILE_SIZE for log rotation is not working
andrenatal opened this issue · comments
Andre Natal commented
The constant MAX_LOG_FILE_SIZE
here https://github.com/unispeech/unimrcp/blob/master/libs/apr-toolkit/include/apt_log.h#L32 is not working.
The only way to change the size of the log files was hardcoding the maximum file size here: https://github.com/unispeech/unimrcp/blob/master/libs/apr-toolkit/src/apt_log.c#L1110 and replace file_data->settings.max_size
by the desired value.
Arsen Chaloyan commented
Have you tried to change the log file size from the configuration file logfile.xml?
Andre Natal commented
Thanks.