nsIConsoleService

IID:a647f184-1dd1-11b2-a9d1-8537b201161b
Inherits From:nsISupports

This interface is intended to be used as a service.

This interface is implemented by the following components:


Methods

void getMessageArray ( out nsIConsoleMessage messages , out PRUint32 count ) void logMessage ( nsIConsoleMessage message ) void logStringMessage ( PRUnichar* message ) void registerListener ( nsIConsoleListener listener ) void unregisterListener ( nsIConsoleListener listener )

void getMessageArray ( out nsIConsoleMessage messages , out PRUint32 count )

Get an array of all the messages logged so far. If no messages are logged, this function will return a count of 0, but still will allocate one word for messages, so as to show up as a 0-length array when called from script.

Arguments:
messages
count

void logMessage ( nsIConsoleMessage message )

Arguments:
message

void logStringMessage ( PRUnichar* message )

Convenience method for logging simple messages.

Arguments:
message

void registerListener ( nsIConsoleListener listener )

To guard against stack overflows from listeners that could log messages (it's easy to do this inadvertently from listeners implemented in JavaScript), we don't call any listeners when another error is already being logged.

Arguments:
listener

void unregisterListener ( nsIConsoleListener listener )

Each registered listener should also be unregistered.

Arguments:
listener

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com