Hi,

On Thu, 13 Feb 2014 10:22:44 -0700
"Paul Fontenot" <ssdv6...@gmail.com> wrote:

> I currently use this to rotate my logs,  looking through the documentation
> it is apparent that nxlog can do what I want I just don't know how to get it
> to, I would like it to rotate the logfile to a different location instead of
> leaving message.log.1 in the same directory as message.log . I can use
> logrotate under linux to do this but I'd like to have nx handle it's own
> logs and rotation.
> 
> <Extension logrotate>
>       Module  xm_fileop
>       <Schedule>
>               When    @daily
>               Exec    file_cycle('/var/log/nxlog/nxlog.log', 7);
>               Exec    file_cycle('/var/nxlog/message.log', 7);
>       </Schedule>
> </Extension>

You add an exec_async() to run a command which moves *.log.*. after the
files are rotated.

Regards,
Botond

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to