[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users] [Log] reversed file rotation order...
From:       Ovanes Markarian <om_boost () keywallet ! com>
Date:       2014-09-24 22:44:14
Message-ID: CAH_e8=sd7M5D9VFLVYuM7ai=51+eV447s1RNpx51-S93ySf5JA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi *,

We use file rotation with boost log, since I work more and with Python I
use Python's logging as well. One interesting feature I observed was that
Python's logger does reversed file rotation. Is that sort of feature
implemented with boost::log library?

In boost the rotation is:

whatever_0.log  < oldest file
whatever_1.log
whatever_2.log < newest file

In Python the rotation order is:

whatever_0.log  < newest file
whatever_1.log
whatever_2.log  < oldest file

I think this is a very cool how Python does it, since I am able to
endlessly "tail" in the shell the log file:

tail -f whatever_0.log

will not stop until I cancel the tail operation. With boot it is like,
logger writes a new file and tail hangs with the file which is no longer
written. This is a bit unusable and confusing. Would be great if that'd be
possible in boost.


Thanks,
Ovanes

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi *,</div><div><br></div>We use file rotation with boost log, \
since I work more and with Python I use Python&#39;s logging as well. One interesting \
feature I observed was that Python&#39;s logger does reversed file rotation. Is that \
sort of feature implemented with boost::log library?<div><br></div><div>In boost the \
rotation is:</div><div><br></div><div>whatever_0.log   &lt; oldest \
file</div><div>whatever_1.log</div><div>whatever_2.log &lt; newest \
file</div><div><br></div><div>In Python the rotation order \
is:</div><div><br></div><div>whatever_0.log   &lt; newest \
file</div><div>whatever_1.log</div><div>whatever_2.log   &lt; oldest \
file</div><div><br></div><div>I think this is a very cool how Python does it, since I \
am able to endlessly &quot;tail&quot; in the shell the log \
file:</div><div><br></div><div>tail -f whatever_0.log</div><div><br></div><div>will \
not stop until I cancel the tail operation. With boot it is like, logger writes a new \
file and tail hangs with the file which is no longer written. This is a bit unusable \
and confusing. Would be great if that&#39;d be possible in \
boost.</div><div><br></div><div><br></div><div>Thanks,</div><div>Ovanes</div></div>



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic