User Guide

Log class 101
Log class
Availability
Flash Media Server 2.
The Log class lets you create a Log object that can be passed as an optional argument to the
constructor for the WebService class. For more information, see “Constructor for the
WebService class” on page 164.
Event handler summary for the Log class
Constructor for the Log class
Availability
Flash Media Server 2.
Usage
new Log([logLevel][, logName])
Parameters
logLevel Level must be set to one of the following (if not set explicitly, the level defaults to
Log.BRIEF):
Log.BRIEF Primary life cycle event and error notifications are received.
Log.VERBOSE All life cycle event and error notifications are received.
Log.DEBUG Metrics and fine-grained events and errors are received.
logName An optional parameter that can be used to distinguish between multiple logs that
are running simultaneously to the same output.
Returns
A Log object.
Description
Constructor; creates a Log object that can be passed as an optional parameter to the
constructor for the WebService class.
Method Description
Log.onLog Invoked when a log message is sent to a log.