Skip to content

Log to a file #5

Description

@trstephen

The logging package is cool and can have multiple backends attached to the same log. I want to have my variable level console log and log all DEBUG info to a timestamped file.

This implementation feels like it's right but it doesn't work. It can create the file but never writes anything to it. If I keep the code as-is and swap out os.Stdout it logs as expected. 😞

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions