Author Topic: How to set up a rotating log  (Read 1743 times)

0 Members and 1 Guest are viewing this topic.

GrapeApe

  • Guest
How to set up a rotating log
« on: March 17, 2007, 07:08:30 AM »
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
Re: How to set up a rotating log
« Reply #1 on: March 21, 2007, 04:47:43 AM »
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 MarkV

  • Tireless poster
  • ****
  • Posts: 746
    • View Profile
Re: How to set up a rotating log
« Reply #2 on: March 21, 2007, 09:43:34 PM »
+1


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

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: How to set up a rotating log
« Reply #3 on: March 22, 2007, 04:11:07 PM »
you can already do it!

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

Offline MarkV

  • Tireless poster
  • ****
  • Posts: 746
    • View Profile
Re: How to set up a rotating log
« Reply #4 on: March 24, 2007, 01:44:22 AM »
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: 12953
    • View Profile
Re: How to set up a rotating log
« Reply #5 on: March 24, 2007, 08:08:20 AM »
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
Re: How to set up a rotating log
« Reply #6 on: March 30, 2007, 12:35:53 AM »
Thx I had no idea I had set something up with wincron but I will use this now

GrapeApe

  • Guest
Re: How to set up a rotating log
« Reply #7 on: March 30, 2007, 12:43:59 AM »
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: 12953
    • View Profile
Re: How to set up a rotating log
« Reply #8 on: March 30, 2007, 01:22:35 PM »
it's likely HFS will have a rotation feature in the future