The <printerEventListeners> section

Altering the .config file will affect the operation of the application and should only be undertaken by an administrator

This specifies which applications (known as listeners) are notified whenever a printer changed event occurs. This could be a change in the printer setup, status or number of jobs waiting to be printed.

The format of the section is:
<printerEventListener key="printerEventFileListener" classType="PrinterMonitorService.PrinterMonitorLogfileListener" commandLine="d:\Temp\PrinterEvents.log" />

Each listener is identified by a unique key.

The classType property identifies the application that implements the listener.

The commandLine property is the start-up settings passed to the lsitener

In the above example a listener called printerEventFileListener is created by the application assembly PrinterMonitorService.PrinterMonitorLogfileListener and is passed command line parameter d:\Temp\PrinterEvents.log to specify where it should store the information it is passed

For more information about writing customised listeners please see the developer documentation