rejetto forum

How to set up a rotating log

Guest · 9 · 2666

0 Members and 1 Guest are viewing this topic.

GrapeApe

  • Guest
Ive got new log files being created everyday (as long as there is traffic) with the  date in the file name , is there some way to keep a max of 7 files and  delete the oldest log file  (In other words a rotating log)?


Offline TGeRi

  • Tireless poster
  • ****
    • Posts: 113
    • View Profile
Hi!

I think there is no way right now but this is a very good feature req and i think it's "an easy one" for Rejetto too. Hmm?

TG



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
you can already do it!

right click on log -> log to file -> hfs.%dow%.log


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
And HFS overwrites logs from previous week? Or does it just append?


MarkV
http://worldipv6launch.org - The world is different now.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
whooops.... i fear it will just append.

at the moment i can't see an easy way to rotate the logs, from the programmer's point of view. :/


Grapeape

  • Guest
Thx I had no idea I had set something up with wincron but I will use this now


GrapeApe

  • Guest
Well actually  I'm still using wincron to rotate the log itself to another folder and then later delete them based on date created. I thought I should  at least explain what I am doing .This combo works well but you have to write a little script to make wincron work but I would be willing  share if someone needed some help.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it's likely HFS will have a rotation feature in the future