Configuring AGS Transaction Logging

Use this procedure to add AGS transaction logging to the Landmark logging system. This procedure sends logging output to both the console and the %LALOGDIR%\AGS.log file.

The logging and trace levels (20) used in this procedure result in a high level of detail. If you do not need such a high level of detail, you can reset the levels to 3.

To configure AGS transaction logging

  1. Confirm that the following file exists with the contents shown below.

    %LACFGDIR%\AGSInfoConfiguration.xml

    <configuration enabled="true">  
        <!-- Definition of Formatters --> 
        <log_formatters>     
            <formatter name="AGSLogFormatter" classname="com.lawson.util.logging.LogMessageFormatter" 
                       enabled="true"/> 
        </log_formatters>  
        <!-- Definition of Filters --> 
        <log_filters>     
            <filter name="AGSLogFilter" classname="com.lawson.util.logging.SimpleMessageFilter" 
                       enabled="true">
                <parameters>             
                    <Parameter value="loglevel=20"/>
                    <Parameter value="tracelevel=20"/>
                </parameters>
            </filter> 
        </log_filters>  
        <log_publishers>     
            <publisher name="AGSLogFileOut" enabled="true" classname="com.lawson.logging.LogFilePublisher">
                <parameters>
                    <Parameter value="file=AGS.log"/> 
                </parameters>
            </publisher>
            <publisher name="AGSLogFilePool" enabled="true" classname="com.lawson.logging.MessagePooler">
                <parameters>
                    <Parameter value="publisher=AGSLogFileOut"/>
                    <Parameter value="delay=10000"/>
                </parameters>
            </publisher> </log_publishers>
        <!-- Definition of Consumers -->
        <log_consumers>
            <consumer name="AGSLogFile" enabled="true" publisher="AGSLogFilePool">
                <filter name="AGSLogFilter"/>
                <formatter name="AGSLogFormatter"/>
            </consumer>
            <consumer name="AGSConsole" enabled="true" publisher="Console">
                <filter name="AGSLogFilter"/>
                <formatter name="AGSLogFormatter"/>
            </consumer> </log_consumers>  
        <!-- Definition of parameters for defined Producers --> 
        <log_producers>     
            <producer name="AGSLoggerName" classname="com.lawson.util.logging.DefaultMessageProducer" 
                        enabled="true">
                <log_consumers>
                    <consumer name="AGSLogFile"/>
                    <consumer name="AGSConsole"/>
                </log_consumers>
            </producer> </log_producers>
    </configuration> 
  2. Open the file:

    %LACFGDIR%\configuration.properties

  3. Locate the line that begins Files= and confirm that it contains the following text:

    ;AGSInfoConfiguration.xml

  4. Add the ;AGSInfoConfiguration.xml to the line if it is not here.
  5. Save and close the file.