Controling LogD on an active server.

 

Using Metamod to control LogD function.

LogD is a Metamod plugin. Metamod creates an interface between the server and client DLLs. It also provides other functionality, such as the ability to pause the client DLLs (as long as they have a Metamod interface.) The most useful Metamod function for use with LogD is the ability to pause the plugin.

To use this you type "meta pause LogD" at the HLDS console (without the quotes). This will pause LogD, which means no more log parsing until it is un-paused or the server changes maps. This is useful if you find yourself in a situation where you wish to suspend the activities performed by LogD temporarily without restarting the server. LogD can then be reactivated by using the command "meta unpause LogD" without the quotes at the server console.

There are a number of other Metamod commands that can be used. To see the Metamod command list type "meta" at the console then hit return to see the full list of options and their uses.

 

Example of how to control LogD.

I have started my server and i want to check that LogD is running. To do this i use the "meta list" command.


meta list
Currently loaded plugins:
descriptionstatpendfile verssrcloadunlod
[ 1] AdminmodRUN-admin_MM.dll v2.50e (iniStartStart
[ 2] WD Misc FunctioRUN-wdmisc_MM.dll v1.08.00iniANYPause
[ 3] Trace HLSDK APIRUN-trace_mm.dll v1.08.00iniANYPause
[ 4] Log DeamonRUN-logd_mm.dll v1.0 alpiniANYPause

The list includes logd_mm.dll as entry number 4. Now, I've decided i want to pause it for some reason. I’ll use meta pause.


meta pause
usage: meta pause <plugin> [<plugin> ...]
where can be either the plugin index #
or a non-ambiguous prefix string matching name, desc, file, or logtag

I'll use the name to keep things clear. I’ll type "meta pause logd_mm".


meta pause logd_mm
L 07/26/2001 - 14:27:45: [META] Paused plugin 'Log Deamon'
Paused plugin 'Log Deamon'

It is now paused and will take no action. You can view this by using "meta list" again.


meta list
Currently loaded plugins:
descriptionstatpendfile verssrcloadunlod
[ 1] AdminmodRUN-admin_MM.dll v2.50e (iniStartStart
[ 2] WD Misc FunctioRUN-wdmisc_MM.dll v1.08.00iniANYPause
[ 3] Trace HLSDK APIRUN-trace_mm.dll v1.08.00iniANYPause
[ 4] Log DeamonPAUS-logd_mm.dll v1.0 alpiniANYPause
4 plugins, 3 running

Note that Log Deamon's status is listed as PAUS which is short for paused. To un-pause it I’ll use "meta unpause logd_mm" at the console.


meta unpause logd_mm
L 07/26/2001 - 14:32:15: [META] Unpaused plugin 'Log Deamon'
Unpaused plugin 'Log Deamon'

Metamod also has other capabilities that allow you to customise your use of it's plugins. Rather than cover that all here, we suggest you read the Metamod information. Tinker with it a bit to see what you can find and use.