Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

BUG: Structured logging in Golang #262

Open
@vutkin

Description

@vutkin

Hi @Yannig, you did a PR where logger was changed: https://github.com/iamseth/oracledb_exporter/pull/243/files
Old logs looks like:

image

New implementation in latest build:

image

Please note that all logs lack of whitespaces
Screenshot 2022-12-23 at 15 51 50

I suggest to use json formatted log in PRODUCTION profile and switch to most popular top go loggers. I like https://github.com/sirupsen/logrus.

TIA,
Regards, Viktor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions