Skip to content

Refactor go/lib/log into more idiomatic Go #3594

@scrye

Description

@scrye

go/lib/log has a few example of non-idiomatic Go code, and some awkward behaviors. Specifically, the following should be fixed:

  • fix the stuttering var names (e.g., logFileHandler, logConsHandler, SetupLogFile, logDir, etc.)
  • fix the long argument lists by moving to a configuration struct (the configuration struct can take inspiration from go/lib/env.Logging)

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorChange that focuses around reducing tech debt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions