Skip to content

Improve plugin API #3

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(...)
))

Activity

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

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