Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2006, 06:55 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default Enable debugging in logs?

Last question (of the day), promise.

I have searched the forums and wiki, and cannot see a definitive way to get full debugging on in my logs. I believe during the upgrade steps, I saw at one time the logs filling with tons of useful data - but as of my upgrade to 840, I barely get anything but zoning debug.

How can I turn full debugging back on? Is it a recompile, or that loglevel setting in the variables table? Any pointers would be greatly appreciated.

J
Reply With Quote
  #2  
Old 08-05-2006, 09:59 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

While I have yet to get this to work, it would appear there is a configurable extended logging system in the world.

http://www.eqemulator.net/wiki/wikka...a=ServerLogSys

I keep crashing my zones and sending them to 99% CPU using them, or not seeing any new logging whatsoever, but there's a WIKI for it! yessss.
Reply With Quote
  #3  
Old 08-21-2006, 01:49 PM
Zengez
Hill Giant
 
Join Date: Nov 2004
Posts: 160
Default

You ever get this to work? Trying to get logging of any kind to turn on and I either go linkdead, or it doesn't log anything other than commands and zoning... makes this entire logging bit kinda useless if you can't activate it
Reply With Quote
  #4  
Old 08-22-2006, 12:39 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Not sure if this is what you are looking for, but under common is the file logtypes.h you'll find a lot of the following...

Code:
LOG_CATEGORY( CHAT )
LOG_TYPE( CHAT, SAY, DISABLED )
LOG_TYPE( CHAT, EMOTE, DISABLED )
LOG_TYPE( CHAT, OOC, DISABLED )
LOG_TYPE( CHAT, GROUP, DISABLED )
LOG_TYPE( CHAT, GUILD, DISABLED )

LOG_CATEGORY( SPAWNS )
LOG_TYPE( SPAWNS, MAIN, DISABLED )
LOG_TYPE( SPAWNS, CONDITIONS, DISABLED )
LOG_TYPE( SPAWNS, LIMITS, DISABLED )

LOG_CATEGORY( AI )
LOG_TYPE( AI, WAYPOINTS, DISABLED )
LOG_TYPE( AI, BUFFS, DISABLED )
LOG_TYPE( AI, SPELLS, DISABLED )

LOG_CATEGORY( QUESTS )
LOG_TYPE( QUESTS, PATHING, DISABLED )
Look thru and change DISBABLED to ENABLED on the ones you feel you need.
Reply With Quote
  #5  
Old 08-23-2006, 07:37 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Sometime passed build 840 (I think) I noticed the logging to eqemu\*.log files are now generating tons of good info. Not sure if I just missed it before, or if it got turned back on. Waht I saw when I posted this was the zone or world startup, and then no subsequent log entries until I restarted the services - then new logs were created, of course.

Now it's behaving differently. And I get what I think I need from the logging. And I guess there are in-game log subscriptions too that spit out tons of info and generally crash my zones. It's all good. I'm trying to track down why, when someone does a high volume of damage, a zone will throw an exception and kick everyone out. Hopefully logs will tell me something.
Reply With Quote
  #6  
Old 08-23-2006, 01:07 PM
Zengez
Hill Giant
 
Join Date: Nov 2004
Posts: 160
Default

Ok, i must just be missing something, someone mind posting a step by step process to turn on logging? all i seem to get is the world bootup info that goes to the cmd box anyway, and when a person uses a gm command, but thats it... can't get any info on anything of actual interest, specifically the process of spell effects or spell casting or anything (trying to fix attack speed issues in npcs)
Reply With Quote
  #7  
Old 08-24-2006, 03:29 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I just looked into my PEQ `variables` table, and found this setting:
Code:
varname = loglevel 
value = 1111 
information = Commands,Merchants,Trades,Loot
ts = current time
This is something I changed long ago not knowing what I was doing and completely forgot. I have no clue what the "expected values" are, so I used 1's. Maybe this is why I am seeing more logging? You can check through the source and see if 0 and 1 are the only possible values for this option.

I am finding my logging in the \EQEmu\Logs folder. Here's a small example of tthe amount of logging I am getting:

eqemu_debug_zone_XXXX.log - These are obviously the largest files. If you have a lot of activity, these fill up fast. In one evening, we got one to 32mb. To me, this is one of the most valuable for troubleshooting.
Code:
[08.23. - 21:47:20] [SKILLS__GAIN] Skill 40 at value 252 cannot increase due to maxmum 200
eqemu_zone_XXXX.log files - this looks like normal zone traffic (note the log levels? that's what makes me think this `variables` setting is what's doing this)
Code:
[08.23. - 20:20:35] General logging level: 1
[08.23. - 20:20:35] Merchant logging level: 1
[08.23. - 20:20:35] Trade logging level: 1
[08.23. - 20:20:35] Loot logging level: 1
[08.23. - 20:20:35] ---- Zone server potranquility, listening on port:7009 ----
[08.23. - 20:20:35] Zone Bootup: potranquility (203)
eqemu_error_zone_XXXX.log - errors go here, apparently
Code:
[08.23. - 20:21:06] Inventory::_PutItem: Invalid slot_id specified (251)
[08.23. - 20:21:06] Warning: Invalid slot_id for item in inventory: charid=59, item_id=69110, slot_id=251
eqemu_quest_zone_XXXX.log - this looks like quest script related events
Code:
[08.22. - 17:21:55] Tying perl output to eqemu logs
[08.22. - 17:21:55] Creating EQEmuIO=HASH(0xe485e30)
eqemu_commands_zone_XXXX.log - this appears to be who did what # command in the zone
Code:
[08.23. - 19:56:48] Bigtank (myacct) used command: #showstats (target=Tallon_Zek00)
[08.23. - 19:56:55] Bigtank (myacct) used command: #invul 1 (target=Tallon_Zek00)
eqemu_debug_world.log - Looks like world startup, zone launch, shutdown stuff
Code:
[08.21. - 15:18:06] [WORLD__CONSOLE] New zoneserver #13 from 127.0.0.1:2440
[08.21. - 15:18:06] [WORLD__ZONE] [13] Zone started with name dynamic_10 by launcher zones
[08.21. - 15:18:06] [WORLD__ZONE] [13] Auto zone port configuration.  Telling zone to use port 7012
[08.22. - 15:16:07] [WORLD__LS] Connecting to login server...
[08.22. - 15:16:07] [WORLD__LS] Connected to Loginserver: eqemulator.net:5998
eqemu_world_XXXX.log - very small, shows the startup
Code:
[08.22. - 17:20:57] Using database 'peq' at 192.168.1.30:3306
[08.22. - 17:20:57] EMuShareMem loaded
[08.22. - 17:20:57] Loading items from database: count=54308

Logs that are created that never appear to do much are the eqemu_dynamic_XXXX.log files. I rarely see them higher than 0kb in size (empty)

---

Sorry, I didn't think this was going to be so long. The only other log I have found is the zone-ecommons.log, where ecommons is the name if you set a zone as a Static launch. I'm sure to the oldbies, this is redundant, but new folks seem to be asking, and I am new and offering my assistance.
Reply With Quote
  #8  
Old 08-24-2006, 05:25 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

This is from the wiki under Server Variables
loglevel
Default: 0000\\
Commands,Merchants,Trades,Loot\\
not really used anymore


What's in your log.ini file John?

Zengez, are your compiling your own? What source are you using.

in common/debug.h you will find

Code:
// Debug Levels
#ifndef EQDEBUG
#define EQDEBUG 1
#else
////// File/Console options
// 0 <= Quiet mode Errors to file Status and Normal ignored
// 1 >= Status and Normal to console, Errors to file
// 2 >= Status, Normal, and Error  to console and logfile
// 3 >= Lite debug
// 4 >= Medium debug
// 5 >= Debug release (Anything higher is not recommended for regular use)
// 6 == (Reserved for special builds) Login  opcode debug All packets dumped
// 7 == (Reserved for special builds) Chat Opcode debug All packets dumped
// 8 == (Reserved for special builds) World opcode debug All packets dumped
// 9 == (Reserved for special builds) Zone Opcode debug All packets dumped
// 10 >= More than you ever wanted to know
Reply With Quote
  #9  
Old 08-24-2006, 06:53 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I saw that, "not used anymore" so that's why I dismissed it from memory.

I have nothing in my log.ini. It's blank. Either devs turned on a lot of logging recently, or things magically started working... or those variables still do _something_?
Reply With Quote
  #10  
Old 08-24-2006, 09:03 AM
soulshot
Hill Giant
 
Join Date: Jun 2006
Posts: 142
Default

Not to change the subject but I am also getting a few players reporting complete zone kicks when a high amount of melee damage is done in a short amount of time. Monks 60+...
Reply With Quote
  #11  
Old 08-24-2006, 01:14 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

I just added a quick explanation of eqemu's mess of a log system to the bottom of:
http://www.eqemulator.net/wiki/wikka...a=ServerLogSys
Reply With Quote
  #12  
Old 08-24-2006, 01:32 PM
Zengez
Hill Giant
 
Join Date: Nov 2004
Posts: 160
Default

Well, for what it's worth I tried everything I could find and I couldn't get any log info at all to pop up besides the commands and zones and bootup... I changed over that variable from 0000 to 1111 and now I have more logging than I know what to do with... so I'm pretty sure that's the problem

Thanks John
Reply With Quote
  #13  
Old 08-25-2006, 08:38 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Quote:
Originally Posted by soulshot
Not to change the subject but I am also getting a few players reporting complete zone kicks when a high amount of melee damage is done in a short amount of time. Monks 60+...
We were mentioning this over here: http://eqemulator.net/forums/showthread.php?t=21131

I would love to find out what's doing this and fix it, since this is about the only annoyance I have right now with the Emu. Of course, I can choke my players down to not-godlike-damage-levels and fix it that way.
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 05:55 PM.


 

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