Skip to content

Bring your own logger #71

@MeerBiene

Description

@MeerBiene

Is your feature request related to a problem? Please describe.
Not related to a problem just an idea by @Huskydog9988

Describe the solution you'd like
Passing your own logger so you dont get console outputs for people that are using some special logger like bunyan or something. Would required their logger to at least have a loglevel for info, warn and errors.

Describe alternatives you've considered
I thought about overwriting the console.log method globally but that didn't feel right.

Concept

blapi.setLogger(myLogger)

EDIT:
Alternative Conept

blapi.setLogging({
extended: true,
logger: myLogger
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions