Skip to content

Allow custom debug logging #67

@jirenius

Description

@jirenius

Issue

In order to resolved issues like #39, it should be possible to capture logging using a custom function.
This will extend the current option for debug from:

* @param {boolean} [opt.debug] Flag to debug log all WebSocket communication, or logging function. Defaults to false.

To:

* @param {boolean|function} [opt.debug] Flag to debug log all WebSocket communication, or logging function. Defaults to false. Function has schema: (type:string,msg:string,ctx:any) => void.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions