unispeech / unimrcp

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

MAX_LOG_FILE_SIZE for log rotation is not working #281

Closed andrenatal closed 4 years ago

andrenatal commented 4 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 4 years ago

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

andrenatal commented 4 years ago

Thanks.