News:

Come Chat with us live! Learn how HERE!

Main Menu

Daily Server Log

Started by squishy, September 04, 2006, 05:36:10 PM

squishy

Any way to set the server to create daily logs instead of one huge file?

If not... Feature Request!
--df

Caveman


David

tremed.x86 >> logs/`date +&D`.log
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

squishy

Caveman: Not sure what you are referencing.

David: Thanks! I'll give that a shot.
--df

squishy

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?
--df

next_ghost

If your server runs on Linux, logrotate(8) 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...
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

squishy

I appreciate your original attempt to help, but take your operating system war elsewhere. Looking for a solution. Not a battle of the wits!
--df

Undeference

Quote from: digifadLooking 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.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

squishy

--df

David

cron job, or the windoze equivalent.

at midnight copy the log to the right place and empty the file.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

squishy

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.
--df

Caveman

too bad that the solutions present wont fit your problem.
Maybe it's just a layer 8 problem?

squishy

QuoteMaybe 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.
--df

Caveman

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.

squishy

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!
--df

Undeference

QuoteI 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
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

squishy

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.
--df

zukka

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

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..

squishy

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.
--df

zukka

Quote from: digifadThanks, 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...

squishy

Cool beans. I'll see what I can do. Thanks again!
--df