Skip to content

riverlog testing #976

@nicks

Description

@nicks

Currently, the River log example looks like this:

riverlog.Logger(ctx).Info("Logged from worker")

If I want to write unit tests for this code, how do I get a context with a logger attached? I couldn't find an easy way to do this in the current API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions