Log in

View Full Version : LogLevel Field in the Variables Table


jobofuz
01-22-2004, 02:48 AM
With some help from Var1ety, the grep master, I've managed to find out some of the flags for the LogLevel field.

This field allows you to turn on differnt level of logging for your server. Always nice to know who is doing what to your server when your off watching por... err sleeping.

Default value is 0000
Commands,Merchants,Trades,Loot

Each digit has a possible value of 0 -9

0 = no logging
1 = log only actions of account with status of 200 and up(server op)
2 = log only actions of account with status of 150 and up(all gms)
3 = log only actions of account with status of 100 and up
4 = log only actions of account with status of 80 and up
5 = log only actions of account with status of 20 and up
6 = log only actions of account with status of 10 and up
7 = log only actions of account with status of ANY(log all actions)
8 = hmm didnt see an 8, did i miss something =)
9 = log only actions of account with status of 150-199(lead gm)

Note: Status field is found in the account table
Note: Log entries are saved in umm go figure the EventLog table

While this post may not be 100 percent correct, and I welcome corrections, I think this will be helpful to new server ops that wish to use the logging features provided.

Jobo
Hobo Village

EDIT: Thank you for moving this to the correct forum

var1ety
01-22-2004, 05:07 AM
8 logs only GM ( 100 <= n < 200 )

As for the other fields:

Logging of trades is detailed in zone/mob.cpp, lines 2478-2516.

Logging of player looting is detailed in zone/PlayerCorpse.cpp, lines 578-607.

Logging of merchants is in zone/client_process.cpp, lines 3133-3161.

No matter their location, however, the logging behavior seems consistent with that detailed in the OP.