Diagnostics library

Configuration

As with all libraries, it's configuration should be placed inside of program configuration.

The <logged> nodes are periodically searched for and, if successfully casted to Diagnostics::StatsBase objects, the current statistics are logged. This a convenience alternative to viewing them through diagnostics pages.

<vitrall>
  <program>
    ...
    <diagnostics>
      <logged name="/communication/request-stats" />
      <logged name="/path/to/instance/of/Diagnostics::StatsBase" />
    </diagnostics>
  </program>
  ...
</vitrall>

In default configurations it is configurable through logged variable, e.g.

./vitralld demonstation.xml --var logged="/communication/request-stats /path/to/instance/of/Diagnostics::StatsBase"