Skip to content

Allow custom debug logging #67

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions