
89
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Availability
Flash Media Server 2
Event handler summary
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):
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.
Event handler Description
Log.onLog() Invoked when a log message is sent to a log.
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.
Commentaires sur ces manuels