Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(883472a0-ea9b-11da-8ad9-0800200c9a66)]
interface nsIConsoleService : nsISupports

Methods

 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.
void getMessageArray([array, size_is(count)] out nsIConsoleMessage messages, out PRUint32 count)

        
void logMessage(in nsIConsoleMessage message)
 Convenience method for logging simple messages.
void logStringMessage(in wstring message)
 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.
void registerListener(in nsIConsoleListener listener)
 Clear the message buffer (e.g. for privacy reasons).
void reset()
 Each registered listener should also be unregistered.
void unregisterListener(in nsIConsoleListener listener)