Skip to content

[REFACTOR] Unify case usage, seperators and punctuation for logging #298

@Kavindu-Dodan

Description

@Kavindu-Dodan

Requirements

Flagd logs have mixed usage of uppercase and lowercase.

je.Logger.Error(fmt.Sprintf("parseFractionalEvaluationData: %v", err)) vs fs.Logger.Error(fmt.Sprintf("Error fetching after Create notification: %s", err.Error()))

This issue focuses on unifying case usage throughout the source and setting the standards for logging formats.

  • Prefered first letter case - lowercase

    ex:- fs.Logger.Debug("configuration modified")

  • Prefered separator for details - :

    (Note the : usage for for uri detail )
    ex:- Logger.Info(fmt.Sprintf("watching filepath: %s", fs.URI))

  • Prefer log line end punctuation - NONE (i.e - No full stop)

    ex:- fs.Logger.Info("Starting filepath sync notifier")

Metadata

Metadata

Assignees

Labels

Needs TriageThis issue needs to be investigated by a maintainerenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions