Skip to content

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

Closed

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")

Activity

  1. added
    enhancement
    Needs Triage
    on Jan 20, 2023
  2. changed the title [-][FEATURE] Unify case usage, seperators and punctuation for logging[/-] [+][REFACTOR] Unify case usage, seperators and punctuation for logging[/+] on Jan 20, 2023
  3. added
    good first issue
    help wanted
    on Jan 20, 2023
  4. mihirm21 commented on Jan 22, 2023

    @mihirm21
    Contributor

    Hi, can I be assigned this issue or should I directly submit my PR here?

  5. beeme1mr commented on Jan 22, 2023

    @beeme1mr
    Member

    Sure, thanks @mihirm21!

  6. removed
    help wanted
    on Jan 22, 2023
  7. mihirm21 commented on Jan 22, 2023

    @mihirm21
    Contributor

    Could this be merged though DCO not permitting since I am unable to sign off my commit.

  8. beeme1mr commented on Jan 23, 2023

    @beeme1mr
    Member

    Hey @mihirm21, you should be able to run these commands to sign off on your previous commits.

    To add your Signed-off-by line to every commit in this branch:

    Please let me know if you run into any issues.

  9. mihirm21 commented on Jan 26, 2023

    @mihirm21
    Contributor

    plz check my PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Triageenhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions