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

fix(deps): update module github.com/charmbracelet/log to v0.4.0 #13

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 23, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/log v0.2.1 -> v0.4.0 age adoption passing confidence

Release Notes

charmbracelet/log (github.com/charmbracelet/log)

v0.4.0

Compare Source

Custom Levels

With this release of Log, you can now style your custom level to your liking!

// Define a new level
const SuccessLevel = log.InfoLevel + 1

// Create a style
styles := log.DefaultStyles()
styles.Levels[SuccessLevel] = lipgloss.NewStyle().
    SetString("SUCCESS").
    Bold(true).
    Foreground(lipgloss.Color("42"))

// Set the styles on the default logger
log.SetStyles(styles)

// Define your custom func
func Success(msg string, args ...any) {
	log.Default().Log(SuccessLevel, msg, args...)
}

Along with that, this release includes some important bug fixes detailed below.

Changelog

New Features
  • 2338a13b1bd15b2545de614b50ce123b12ff0af3: feat: expose log function (#​95) (@​aymanbagabas)
Bug fixes
  • 28193306e6f5a221d00a74fa6e8683ea10ae06be: fix: lazy init default logger (#​111) (@​caarlos0)
Dependency updates
  • bcd47385a62a19911e9970bcc96a3431af338160: feat(deps): bump github.com/charmbracelet/lipgloss from 0.9.1 to 0.10.0 (#​112) (@​dependabot[bot])
  • 976db2be8ef2dad2071a6f061ea20b3e0df90c54: feat(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#​108) (@​dependabot[bot])
Documentation updates
  • 87252e4b6fe8ac6e0378a5f6bd10c81cf016478f: docs: Replace function with func in README sample code (@​szktkfm)
  • ac0e6b17de4d9fb40f924721b9be2551b6a3a5b1: docs: direct users to library API (#​73) (@​bashbunni)
  • 9d04d2b741a63f044858c77785d81acdd04974c1: docs: style customization updated (#​106) (@​ssantoshp)
Other work
  • a4246434f75cb530c9e1ac28656f7d8e887b08f8: Create CODEOWNERS (@​maaslalani)
  • fd1729ad8eb8badce23ad62a2050f33e93b82fd8: Options.CallerFormatter documentation issue (#​100) (@​pythonian23)
  • f2cb6b676b58002dfe178158f3d53017e5869de2: ci: test on go define in go.mod (#​102) (@​caarlos0)
  • d23bea6596cacd0141af226b09cc08778a521204: fix!: respect time function (#​115) (@​aymanbagabas)
  • 7a3834f9b3670792499ec4fc7e4610a22c8a5936: slog: Don't log if not enabled at level (#​103) (@​imjasonh)

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.3.1

Compare Source

Changelog

New Features
Bug fixes
Dependency updates
Documentation updates
Other work

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.3.0

Compare Source

This new release of Log adds support for log/slog, and per-instance styles, and includes bug fixes. You can now use Log as a log/slog handler in your applications. Log comes with its own JSON and Logfmt formatters, on the other hand, Slog uses different handlers for these formats.

Breaking Changes!

  • Bump the minimum GoLang version to 1.19
  • Change the default timestamp key from ts to time to match log/slog
  • Change the default level key from lvl to level to match log/slog
  • ParseLevel() now returns an error if parse failed to find a level in string
  • Default levels values changed to be increments of 4 i.e. DebugLevel = -4, InfoLevel = 0, WarnLevel = 4, ...
  • Global styles are replaced with DefaultStyles() and SetStyles()

Changelog

New Features
Bug fixes
Dependency updates
Other work

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.2.5

Compare Source

Changelog

New Features
Bug fixes

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.2.4

Compare Source

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

Full Changelog: charmbracelet/log@v0.2.3...v0.2.4

v0.2.3

Compare Source

Changelog

New Features
Bug fixes
Dependency updates

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.2.2

Compare Source

Changelog

New Features
Bug fixes
Dependency updates
Documentation updates

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.2.2 fix(deps): update module github.com/charmbracelet/log to v0.2.3 Aug 1, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from b06dcb6 to a1fbdf6 Compare August 1, 2023 19:27
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.2.3 fix(deps): update module github.com/charmbracelet/log to v0.2.4 Aug 22, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from a1fbdf6 to 8ffee30 Compare August 22, 2023 23:14
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.2.4 fix(deps): update module github.com/charmbracelet/log to v0.2.5 Oct 4, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 8ffee30 to 1b46a97 Compare October 4, 2023 21:27
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.2.5 fix(deps): update module github.com/charmbracelet/log to v0.3.0 Nov 7, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 1b46a97 to 0dfb778 Compare November 7, 2023 17:18
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 0dfb778 to 25084b3 Compare November 27, 2023 22:16
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.3.0 fix(deps): update module github.com/charmbracelet/log to v0.3.1 Nov 27, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 25084b3 to 3c0fb22 Compare March 21, 2024 16:00
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.3.1 fix(deps): update module github.com/charmbracelet/log to v0.4.0 Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants