You are here: Configuration File > Logging Configuration > Basic and Advanced Logging Configuration

Basic and Advanced Logging Configuration

In addition to the predefined standard access and error logs, you can define any number of advanced templates that can send information to various outputs, such as text files, the screen console, or a TCP socket.

Tip: There are four types of advanced logging templates, which the section "Template Types" explains.

For more information: For information about defining basic logging using Helix Administrator, see "Basic Logging". For advanced logging templates, refer to "Advanced Logging".

Logging Syntax

The following is a sample of the logging syntax. It defined the basic access log, the error log, and an advanced logging template. All information is defined within the main LoggingTemplates list.

<Var StatsMask="3"/>
<Var StatsInterval="0"/> <Var EnableCookieBasedIDs="1"/>
<List Name="LoggingTemplates">
<List Name="Standard Access Log">
<Var Type="AccessLog"/>
<Var Enabled="1"/>
<Var LoggingStyle="5"/>
<List Name="Outputs">
<List Name="AccessLog">
<Var LogRollSize="1"/>
<Var Filename="Logs/rmaccess.log"/>
<Var LogRollFrequency="10H"/>
<Var Type="File"/>
</List>
</List>
</List>

<List Name="Standard Error Log">
<Var Type="ErrorLog"/>
<Var Enabled="1"/>
<List Name="Outputs">
<List Name="ErrorLog">
<Var LogRollSize="1"/>
<Var Filename="Logs/rmerror.log"/>
<Var LogRollFrequency="10H"/>
<Var Type="File"/>
</List>
</List>

<List Name="Extended Logging">
<Var Type="Session"/>
<Var Enabled="1"/>
<Var Format="%time% %Client.*.Addr% %Client.*.Protocol%
%Client.*.RequestMethod% %Client.*.Session.*.URL%
%Client.*.User-Agent%"/>
<Var Interval="00:01:00"/>
<List Name="Outputs">
<List Name="StdOut1">
<Var Type="StdOut"/>
</List>
</List>
<Var Description="This template reports player access information"/>
<Var WatchRoot="BroadcastReceiver.Statistics.*"/>
<Var DelFormat="%time%"/>
</List>
...other logging templates...
</List>

Logging Lists

Logging Templates
list_name 
Outputs
output_type

Logging Variables

Description
EnableCookieBasedIDs
Enabled
Format
Interval
LoggingStyle
LogRollFrequency
LogRollSize
StatsInterval
StatsMask
Type
WatchRoot

Output Types and Variables

Each output list defines variables for the output type. For example, an output list that writes the log output to an outbound TCP port defines the outgoing IP address and the TCP listen port. The following sections explain the variables that are set depending on the output list type.

File
HTTPPost
NTEventLog
Pipe
StdErr
StdOut
SysLog
TCP
TCPListen
UDP
UDPMCast

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com