Skip to content

Documentation currently wrong (router) #36

@lublak

Description

@lublak

https://github.com/samber/slog-multi?tab=readme-ov-file#routing-slogmultirouter

Unfortunately, this function does not currently exist “yet?”

Image

I think the implementation would also be quite simple here:

func Level(level slog.Level) func(ctx context.Context, r slog.Record) bool {
	return func(ctx context.Context, r slog.Record) bool {
		return r.Level == level
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions