VSPdaemon Event Logging Configuration (<log> Section)

Top  Previous  Next

 

<Log> section describes the logging options for events generated by the VSPdaemon. Notice, that <log> section can be included into the VSP configuration itself (i.e. inside <VSP> .... </VSP>) thus defining individual logging options for this particular VSP.  

 

The section has the following syntax:

 

[<log [type="syslog|pipe|file"] level="EMR|ALR|ERR|WRN|NTC|INF|DBG" [path="path"]/>]

 

Type parameter defines the output destination for the event. If type is set to "syslog", all events are logged to a syslog facility "USER". If omitted, this parameter defaults to "syslog".

 

Level parameter defines the type of event for which this entry is created. Standard level names are used.

 

Path parameter is only needed when type="pipe" or "file" and defines the file to which events will be saved or a program that will accept events into its STDIN. 

 

Because each entry in the format shown above specifies logging only for one type of events (level) the configuration file can have several entries, for example:

 

     <log type="file" level="EMR" path="var/dev.0.log"/>

      <log type="file" level="ALR" path="var/dev.0.log"/>

      <log type="file" level="CRT" path="var/dev.0.log"/>

      <log type="file" level="ERR" path="var/dev.0.log"/>

      <log type="file" level="WRN" path="var/dev.0.log"/>

      <log type="file" level="NTC" path="var/dev.0.log"/>

      <log type="file" level="INF" path="var/dev.0.log"/>

 

In general, we recommend you to keep the list of logged events like the one shown above. Logging "DBG" events is not necessary.