Configuring Log Engine

This tutorial describes how to configure Log Engine using TLogConfig class.

Context

There are three parameters which you can configure at run time using a Log Engine client. They are implemented as the three members of a [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]TLogConfig class:

  • iMaxLogSize, the maximum size of an event log,

  • iMaxRecentLogSize, the maximum size of a recent list, and

  • iMaxEventAge, the maximum age of a logged event.

To configure the Log Engine, do the following:

Steps

  1. create a [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]TLogConfig object

  2. set the required values to the members iMaxLogSize, iMaxRecentLogSize and iMaxEventAge
  3. pass it to the [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]ChangeConfig() function of a log client.

Results

The Log Engine will be configured with new values.

Next actions

The [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]TLogConfig class also has the two functions [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]InternalizeL() and [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]ExternalizeL() which implement streaming input and output of a [[[ERROR: [NOKX000E] Unable to find definition for key reference 'TLogConfig']]]TLogConfig object.

Related concepts

Related tasks