Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework how we store log fields #81

Merged
merged 7 commits into from Jul 15, 2022
Merged

Commits on Jul 15, 2022

  1. Introducing internal/fieldutils to manipulate what we are calling "…

    …field maps"
    
    "Field maps" are `map[string]interface{}`, that carry additional fields we want the logging library to attach to logs
    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    2fa4cae View commit details
    Browse the repository at this point in the history
  2. Removing now unnecessary htlogutils.ArgsToKeys function

    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    26bd499 View commit details
    Browse the repository at this point in the history
  3. Creating new Fields options for the internal/logging LoggerOpts

    … options
    
    This is what gets stored in the context with each log, and will now carry the fields we want to append to logs directly (as a map),
    instead of relying on the `hclog` `ImpliedArgs` facility.
    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    2985ad3 View commit details
    Browse the repository at this point in the history
  4. Switch the log filtering functionality to be entirely based on the fi…

    …eld maps
    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    d054621 View commit details
    Browse the repository at this point in the history
  5. Switching tflog and tfsdklog to use the new "native" support for …

    …fields
    
    This doesn't change the interface of the library, but it changes where the fields are stored before they are logged.
    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    4382489 View commit details
    Browse the repository at this point in the history
  6. linting

    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    d6a7072 View commit details
    Browse the repository at this point in the history
  7. Adding lint, fmt and test to makefile

    Just shortcuts for go commands
    Ivan De Marino committed Jul 15, 2022
    Copy the full SHA
    118690f View commit details
    Browse the repository at this point in the history