Skip to content

Log encoder not picked up from config file #855

@dveeden

Description

@dveeden

Bug Report

Config:

[log]
encoder = "json"

[log.log-file]
filename = "/tmp/tiproxy.log"
  • This doesn't lead to the config entries being in JSON format
  • Changing the cfg.Log.Encoder in NewConfig() does change the encoder.
  • Some logging might be printed before the logging is fully configured, leading to wrong formats and logging to stdout instead of the configured file.

Somewhat related: #854

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