Hi, On Tue, 1 Jul 2014 13:18:11 -0400 ken delaney <kenneth.dela...@gmail.com> wrote:
> Anyone have an example of log rotation for creating a new log file, with > date and time, everyday at say midnight? Something like this should do what you need: define FILENAME /path/to/log/file.log <Extension fileop> Module xm_fileop </Extension> <Output out> Module om_file File "%FILENAME%" <Schedule> When @daily Exec file_rename("%FILENAME%", "%FILENAME%" + '.' + strftime(now(), "%Y%m%d%H%M%S")); \ out->reopen(); </Schedule> </Output> Regards, Botond ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users