Logging Definition: elogger

It has already been intimated that the log type components are exceptions to the general pattern when it comes to defining what they are in relation to the Jabber server. In fact, the logging “components” aren’t really separate components at all—they are part of the jabberd backbone. Nevertheless, it is still worthwhile referring to them as components as they can be defined with different characteristics to perform different logging tasks.

The configuration XML for elogger is represented in diagram form in Figure 4-10 and is shown in Example 4-13.

Diagram view of elogger
Figure 4-10. Diagram view of elogger
Example 4-13. jabber.xml configuration for elogger

<log id='elogger'>
  <host/>
  <logtype/>
  <format>%d: [%t] (%h): %s</format>
  <file>error.log</file>
  <stderr/>
</log>

Get Programming Jabber now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.