Skip to content

Support 'structured logging' #48

@Download

Description

@Download

Many logging frameworks support 'structured logging'.
Client code passes as first parameter an object to the log method, and the fields of this object are copied to the log record.

E.g.:

var log = anylogger('my:logger')
log.info({ some: 'field'}, 'Some message'}

In combination with a JSON output, this should give output something like this:

{ "level": "info", "name": "my:logger", "some": "field", "message": ["Some message"]}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions