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

haixiang liu haixiang1977 at yahoo.com
Wed Sep 12 03:41:04 CDT 2018


 ACE VERSION: 6.3.3HOST MACHINE and OPERATING SYSTEM: Ubuntu 16.04 LTS

    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.
SYNOPSIS:
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/1a02b28b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test3.cpp
Type: application/octet-stream
Size: 343 bytes
Desc: not available
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20180912/1a02b28b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svc.conf
Type: application/octet-stream
Size: 106 bytes
Desc: not available
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20180912/1a02b28b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: application/octet-stream
Size: 31 bytes
Desc: not available
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20180912/1a02b28b/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform_macros.GNU
Type: application/octet-stream
Size: 87 bytes
Desc: not available
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20180912/1a02b28b/attachment-0003.obj>


More information about the ace-users mailing list