unispeech / unimrcp

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
374 stars 165 forks source link

MAX_LOG_FILE_SIZE for log rotation is not working #281

Closed andrenatal closed 3 years ago

andrenatal commented 3 years ago

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.

achaloyan commented 3 years ago

Have you tried to change the log file size from the configuration file logfile.xml?

andrenatal commented 3 years ago

Thanks.