Author Topic: Daily Server Log  (Read 6238 times)

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« 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!
--df

Caveman

  • Guest
Daily Server Log
« Reply #1 on: September 04, 2006, 06:34:28 pm »
scrollkeeper

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Daily Server Log
« Reply #2 on: September 04, 2006, 07:22:45 pm »
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

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #3 on: September 04, 2006, 07:45:09 pm »
Caveman: Not sure what you are referencing.

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

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #4 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?
--df

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Daily Server Log
« Reply #5 on: September 04, 2006, 08:48:05 pm »
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

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #6 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!
--df

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Daily Server Log
« Reply #7 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #8 on: September 05, 2006, 01:45:34 pm »
Ugh. No!

Next please!
--df

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Daily Server Log
« Reply #9 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.
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

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #10 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.
--df

Caveman

  • Guest
Daily Server Log
« Reply #11 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?

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #12 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.
--df

Caveman

  • Guest
Daily Server Log
« Reply #13 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.

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #14 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!
--df

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Daily Server Log
« Reply #15 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
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #16 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.
--df

zukka

  • Posts: 14
  • Turrets: +0/-0
Daily Server Log
« Reply #17 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..

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #18 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.
--df

zukka

  • Posts: 14
  • Turrets: +0/-0
Daily Server Log
« Reply #19 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...

squishy

  • Posts: 91
  • Turrets: +1/-0
Daily Server Log
« Reply #20 on: September 07, 2006, 05:59:56 pm »
Cool beans. I'll see what I can do. Thanks again!
--df