Skip to content

riverlog testing #976

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.

Activity

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

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