Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2003, 07:30 AM
Jhonas
Fire Beetle
 
Join Date: Nov 2003
Posts: 9
Default Timestamps on the output on the world and zone servers

I haven't had the server use the files in the logs/ directory (It says it failed to open them, probably wants me to make them), so I'm not sure if this already exists in the logs, but I've been running things like:

./world >> world.log &
./zone . ip port ip >> zone1.log &
./zone . ip port ip >> zone2.log &

and so on. It would be nice if it would timestamp the output so I could align error output in the logs to player documentation of bugs.
Reply With Quote
  #2  
Old 12-02-2003, 07:36 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default Re: Timestamps on the output on the world and zone servers

Quote:
Originally Posted by Jhonas
I haven't had the server use the files in the logs/ directory (It says it failed to open them, probably wants me to make them), so I'm not sure if this already exists in the logs, but I've been running things like:

./world >> world.log &
./zone . ip port ip >> zone1.log &
./zone . ip port ip >> zone2.log &

and so on. It would be nice if it would timestamp the output so I could align error output in the logs to player documentation of bugs.
eqemu has a fairly robust logger that will eventually probably have options to use your existing syslogds, but for now this is probably the easiest way:

(./World 2>&1) | awk -v tz=$(`which date` +%z) '{print "["strftime("%m-%d-%Y %H:%M:%S") tz"] "$0}' | tee -a logfile.log

be sure that you know what timezone your players are in if you intend to do much detective work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:30 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3