LogxWebActivityDestination

 

Initial Build 2017.1.34
Module Admin
Current Setting Type Drop Down List

Modules > Admin > System Options > Find System Option

Use this system option to determine where to log xWeb activity. This system option provides an alternative way of logging xWeb activity to allow sites to optionally direct the xWeb logging output to a Log4Net output instead of or in addition to the SQL Server ws_activity table. The default for this option is SqlServer.

Note: If no logging destination is specified, the system will use the SQL Server ws_activity_log table for logging xWeb activity.

The following system options will affect the xWeb logging activity. Make sure to set them appropriately as needed.

Current Setting

The current setting for LogxWebActivityDestination is used as follows:

Values: This system option can be set to SqlServer, Log4Net, or Both.

  • SqlServer— sets the SQL Server ws_activity_log table for logging xWeb activity.
  • Log4Net— sets the Log4Net option for logging xWeb activity.
  • Both— sets both the options (SqlServer and Log4Net) for logging xWeb activity.

Default Value: SqlServer

Important: If log4net output is selected, additional setup is also required in the <log4net> section of the xWeb web.config file.

The <log4Net> section must include:

  • A “logger” called “WSActivityLog”, with
    • <level = “INFO”>.   (To disable xWeb log4Net logging via web.config, set <level=”OFF”>.
    • <appender-ref ref=”WSActivityLogger”> (or whatever you want to name it)
  • A definition for the “appender-ref” you specified above
    • This defines the name, location, and format of the file that log4net will write to.  See external log4net documentation for details of all available options.

Sample snippet of Log4Net section for xWeb logging:

       <logger name="WSActivityLog">
             <level value="INFO" />
             <!-- Set level to "OFF" to disable logging -->
             <appender-ref ref="WSActivityLogger" />
       </logger>
       <appender name="WSActivityLogger" type="log4net.Appender.RollingFileAppender">
           <param name="File" value="../Logs/xWeb/WSActivityLogger.xml" />
           <param name="AppendToFile" value="true" />
           <rollingStyle value="Size" />
           <maxSizeRollBackups value="10" />
           <maximumFileSize value="10MB" />
           <staticLogFileName value="true" />
           <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
             <layout type="log4net.Layout.PatternLayout">
                    <param name="ConversionPattern" value="%n %message" />
             </layout>
       </appender>

Fields 

This system option includes the following fields:

Description: This field gives the description of the system option, including its use and default value.

Important! Do not modify the following fields after the system option is first created. Changing these fields after they have been used can invalidate existing data.

Category: This field sets the category (usually the module) where the system option is used.

Type: The Type field determines the display type of the Current setting field (check box, drop-down list, or text box).

Values: The values field indicates the allowed values for the Current setting field.

Availability

Each system option includes the following availability settings:

Entity Level Option?: Select this check box to make this system option available on an entity level.

Visible To External Systems?: Select this check box to make this system option available in xWeb.

 

Was this article helpful?
0 out of 0 found this helpful