Skip to content

Improve plugin API #3

@atoko

Description

@atoko

Context logger should be configurable using a callback pattern.

For example, instead of directly returning the logger instance, it first is passed as the first parameter in a callback (as in the builder pattern).

(instance: Loglayer) => Loglayer

example:

Context.Tag('logger')((instance) => {
    return instance.setLogLevel(...)
))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions