[ace-users] [ACE] : the ace log rotate feature not working with ACE 6.3.3

haixiang liu haixiang1977 at yahoo.com
Wed Sep 12 04:22:53 CDT 2018

 I also tried ace own test application:./Logging_Strategy_Test -m 1 -N 4 -s lhx.log -f OSTREAM
It only generate one lhx.log and the size is 31KB.
I maybe miss something and please recommend, thanks.
    On Wednesday, September 12, 2018, 4:41:04 PM GMT+8, haixiang liu <haixiang1977 at yahoo.com> wrote:  

    THE $ACE_ROOT/ace/config.h FILE is attached

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU is attached

AREA/CLASS/EXAMPLE AFFECTED: I have one simple test3.cpp to log and test the ace log rotate. It reads from svc.conf and the maximum file size i set is 1KB and max number of file is 4. But the log rotate not work and it log to one file only whose size is much bigger than i set.

i attached my test code and svc.conf here.
DESCRIPTION: I traced into the ACE_Logging_Strategy::parse_args() and confirmed that the -m and -N has been given correctly. Just the rotate function not work as what I thought. All logs go into 1 file only.REPEAT BY:command to  build: g++ test3.cpp -g -O0 -lACE -o test3.out -I/usr/local/include/ace -L/usr/local/lib
./test3.outand the log.out size is 27000 bytes. And i suppose to see 4 log.out.x and each file size is 1KB.Please help since this is important log feature for me.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20180912/e0fa3e07/attachment.html>

More information about the ace-users mailing list