Interface nsIConsoleServiceType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • message: nsIConsoleMessage

    Returns void

  • Parameters

    • message: nsIConsoleMessage
    • mode: nsIConsoleService_OutputMode

    Returns void

  • Convenience method for logging simple messages.

    Parameters

    • message: wstring

    Returns void

  • 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.

    Parameters

    • listener: nsIConsoleListener

    Returns void

  • Clear the message buffer (e.g. for privacy reasons).

    Returns void

  • Clear the message buffer for a given window.

    Parameters

    • windowInnerId: uint64_t

    Returns void

  • Each registered listener should also be unregistered.

    Parameters

    • listener: nsIConsoleListener

    Returns void

Generated using TypeDoc