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

Bump github.com/tryfix/log from 1.0.2 to 1.2.1 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 4, 2023

Bumps github.com/tryfix/log from 1.0.2 to 1.2.1.

Release notes

Sourced from github.com/tryfix/log's releases.

Bug Fixes

Fixes

  • #3 - @​kosatnkn - fix: json logger cannot print complex param types

New Configuration Options

Skip Frames

log.FileDepth is deprecated and is replaced by log.WithSkipFrameCount.

This is used to configure how many stack frames to skip when retrieving the callers file name, line number and function path.

Log Output

The logger supports two output formats. Text and JSON Use log.WithOutput to configure this option.

constructor := log.NewLog(log.WithOutput(log.OutJson))
logger := constructor.Log()
logger.Error("message")

When this option is not provided the log output will default to Text. Also, the standard logger's output is Text.

Note: Sub loggers of a logger will always inherit the output type of the parent logger. You cannot alternate between output types by passing in log.WithOutput option to the sub logger.

Caller Information

log.WithFilePath and log.WithFuncPath oprions can be used to configure whether to log the caller's file path, line number and function path.

Trace Id Extraction

Automatic Trace Id extraction from the context is removed. Use the log.WithCtxTraceExtractor configuration option to set up a Trace Id extractor function.

ctx := traceable_context.WithUUID(uuid.New())
logger := constructor.Log(
	log.WithLevel(log.TRACE),
	log.WithCtxTraceExtractor(func(ctx context.Context) string {
		if trace := traceable_context.FromContext(ctx); trace != uuid.Nil {
			return trace.String()
		}
	return ""
}))

logger.ErrorContext(ctx, "message", "param1", "param2")

Prefix Adder

log.WithPrefix is deprecated. Do not use it when the logger is configured to output JSON.

Context Extraction

... (truncated)

Commits
  • 8b4198a Merge pull request #4 from tryfix/bugfix/3_cannot_process_complex_structs
  • 297b114 fixed errors not displaying issue
  • 92a0523 Merge pull request #2 from tryfix/feature/json_logger
  • 6d064d8 moved time formatting to newZerolog to improve performance
  • 343b6c5 WithFuncPath option added
  • 5086fda added trace extractor
  • 8cd29c1 added trace extractor
  • dfaa581 refactored benchmarks
  • 4f23c07 code cleanup
  • b2ccad8 updated benchmarks
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 4, 2023
Bumps [github.com/tryfix/log](https://github.com/tryfix/log) from 1.0.2 to 1.2.1.
- [Release notes](https://github.com/tryfix/log/releases)
- [Commits](tryfix/log@v1.0.2...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/tryfix/log
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot-go_modules-master-github.com-tryfix-log-1.2.1 branch from ccd7898 to 6d2c585 Compare October 4, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants