Tremulous Forum

General => Feedback => Topic started by: squishy on September 04, 2006, 05:36:10 pm

Title: Daily Server Log
Post by: squishy on September 04, 2006, 05:36:10 pm
Any way to set the server to create daily logs instead of one huge file?

If not... Feature Request!
Title: Daily Server Log
Post by: Caveman on September 04, 2006, 06:34:28 pm
scrollkeeper
Title: Daily Server Log
Post by: David on September 04, 2006, 07:22:45 pm
tremed.x86 >> logs/`date +&D`.log
Title: Daily Server Log
Post by: squishy on September 04, 2006, 07:45:09 pm
Caveman: Not sure what you are referencing.

David: Thanks! I'll give that a shot.
Title: Daily Server Log
Post by: squishy on September 04, 2006, 08:26:24 pm
On second thought, that doesn't appear to be what I'm looking for. That will only create a log file based on the date I start the executable. Not a daily log.

Any other ideas?
Title: Daily Server Log
Post by: next_ghost on September 04, 2006, 08:48:05 pm
If your server runs on Linux, logrotate(8) (http://www.linuxcommand.org/man_pages/logrotate8.html) should work for you.

Edit: Looks like Windoze server... Nope, I can't help you here. Maybe if you'd switch to a real operating system...
Title: Daily Server Log
Post by: squishy on September 04, 2006, 09:58:19 pm
I appreciate your original attempt to help, but take your operating system war elsewhere. Looking for a solution. Not a battle of the wits!
Title: Daily Server Log
Post by: Undeference on September 05, 2006, 09:20:34 am
Quote from: "digifad"
Looking for a solution. Not a battle of the wits!
It looks to me like a solution. Just get an operating system that logrotate will run on or find something equivalent. Problem solved.
Title: Daily Server Log
Post by: squishy on September 05, 2006, 01:45:34 pm
Ugh. No!

Next please!
Title: Daily Server Log
Post by: David on September 05, 2006, 10:23:28 pm
cron job, or the windoze equivalent.

at midnight copy the log to the right place and empty the file.
Title: Daily Server Log
Post by: squishy on September 06, 2006, 03:39:11 am
That's actually what I'm doing now. But I have to stop the server to release the file and move it to a new location.

Looking for a routine to avoid shutting down the server.
Title: Daily Server Log
Post by: Caveman on September 06, 2006, 07:11:29 am
too bad that the solutions present wont fit your problem.
Maybe it's just a layer 8 problem?
Title: Daily Server Log
Post by: squishy on September 06, 2006, 03:14:54 pm
Quote
Maybe it's just a layer 8 problem?


Your comments are useless. If you have valuable input, please share. Otherwise, quit crapping on others' threads.

None of the solutions shared so far are helpful for a Windows dedicated server. And the implementation of daily logs would be useful IMO. It would appear that many agree as most software has the ability these days.
Title: Daily Server Log
Post by: Caveman on September 06, 2006, 03:56:40 pm
Well I am sorry that none of the given solutions fit your problem.
But since you are running a dedicated WINDOWS-Server that might have other services running, you might want to google yourself and see how other win-admins do a logrotate.

BTW, If you were not so full of yourself, you would have realized that here in this thread your question was already answered.
But noooo you were to blind and busy rejecting (out of hand) just because you did not know what it is.
Since then it was a layer-8 problem.

So either take the solution, work with it, or shove it and live with your handicap.
Title: Daily Server Log
Post by: squishy on September 06, 2006, 04:55:22 pm
Caveman:

As stated, how about posting something useful.

I am far from full of myself. I came on here looking for assistance for an issue I cannot resolve. So far, the solutions shared have not resolved the issue.

If I have overlooked the solution, I am not sure where. So please point it out.

Scrollkeeper - I asked you what you meant, as I've never heard of the product.

tremded.x86 >> logs/`date +&D`.log - this is not a solution as it outputs info to a log based on the date I run the command. Not daily.

logrotate - appears to be Linux only. I've researched windows alternatives, but there don't seem to be any available.

cron job or equivalent - This is what I am using at the moment - scheduled task that kills tremded, moves the log, then starts tremded. I don't want to kill tremded.

All other recommendations were to change OS. I'm not here for an OS war. Start a new topic if that's what is needed.

I just want a solution. If there isn't one for Windows, then I recommend an optional setting be added to tremded to allow daily logs instead of one file.

If you have such a problem with my request, you are the one who need to shove it and move along!
Title: Daily Server Log
Post by: Undeference on September 07, 2006, 02:27:55 am
Quote
I am far from full of myself. I came on here looking for assistance for an issue I cannot resolve. So far, the solutions shared have not resolved the issue.

So just to be clear, you aren't full of yourself but you want other people to solve your problem?
If you wanted to know what scrollkeeper was, you could have looked it up, just like you supposedly did with your problem in the first place.

http://www.catb.org/~esr/faqs/smart-questions.html
Title: Daily Server Log
Post by: squishy on September 07, 2006, 03:48:42 am
There seem to be some major P.I.T.A.'s here. Why shun someone looking for help!?

I've looked for solutions and came here in hopes of actually finding help. It's ridiculous that you flame someone for wanting help or improvement in the tremded system. I've been on the IRC channels and multiple sites looking for a solution to this issue. So yes, I am now on here looking for someone to SOLVE my problem. Not flame or bitch about how lame I am for actually asking for help.

I did search for scrollkeeper, but results turn up multiple applications that don't seem relevant, and I would be more than happy to accept input on how it can help my situation.

I'm not an idiot, full of myself, and not someone who needs a howto on asking questions. I setup and configured a popular tremulous server, a tremulous stats utility for my server, and various mods without help from the community. Now when I actually do come here looking for assistance, I get a couple thread crappers. How about helping the community with helpful answers.
Title: Daily Server Log
Post by: zukka on September 07, 2006, 07:10:45 am
you could use rotatelogs, it's an utility that is part of apache httpd.
http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
something like
Code: [Select]

tremded.x86 | rotatelogs logfile.%Y-%m-%d 86400

should do the job...

but i never tried it under win32 so i'm not sure about date variable expansion.. try it..
Title: Daily Server Log
Post by: squishy on September 07, 2006, 02:04:06 pm
Thanks, zukka. From what I'm reading on that command, it is for rotating apache logs. I don't think that would work for the locked tremulous games.log in Windows 2003.

If you have a link or info that would indicate otherwise, it would be appreciated.
Title: Daily Server Log
Post by: zukka on September 07, 2006, 02:43:48 pm
Quote from: "digifad"
Thanks, zukka. From what I'm reading on that command, it is for rotating apache logs. I don't think that would work for the locked tremulous games.log in Windows 2003.

If you have a link or info that would indicate otherwise, it would be appreciated.

I'm speaking teorically... (ie. i didn't try) :roll:
but using pipe | the file is opened by rotatelogs, not by tremulous... so there shuold not be a locking problem...
tremded.x86 just continues to print/wite to its stdout... and rotatelogs (at the rigtn moment) just closes his file and opens the new one...
Title: Daily Server Log
Post by: squishy on September 07, 2006, 05:59:56 pm
Cool beans. I'll see what I can do. Thanks again!