The Log class lets you create a Log object that can be passed as an optional parameter to the constructor for the WebService class.

Availability

Flash Media Server 2

Event handler summary

Event handler

Description

Log.onLog()

Invoked when a log message is sent to a log.

Log constructor

 new Log([logLevel][, logName])

Creates a Log object that can be passed as an optional parameter to the constructor for the WebService class.

Availability

Flash Media Server 2

Parameters

logLevel

One of the following values (if not set explicitly, the level defaults to Log.BRIEF):

Value

Description

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.

Example

The following example creates a new instance of the Log class:

 newLog = new Log();

Log.onLog()

 myLog.onLog(message){}

Invoked when a log message is sent to a log.

Availability

Flash Media Server 2

Parameters

message

A log message.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy