Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 23, 2023

This PR contains the following updates:

Package Change Age Confidence
github.com/charmbracelet/log v0.2.1 -> v0.4.2 age confidence

Release Notes

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

v0.4.2

Compare Source

This release fixes an issue when using the JSON logger as a slog handler logging error type messages. It ensures we extract the error from the message when the error does not implement json.Marshaler.

Changelog

Bug fixes
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.4.1

Compare Source

This release includes bug fixes for custom slog levels, data race with the default logger and deep copying fields, JSON handling improvements, and supporting slog attributes.

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.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
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 3c0fb22 to 5f01431 Compare March 12, 2025 19:28
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.0 fix(deps): update module github.com/charmbracelet/log to v0.4.1 Mar 12, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Mar 12, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 4 additional dependencies were updated

Details:

Package Change
github.com/mattn/go-isatty v0.0.18 -> v0.0.20
github.com/mattn/go-runewidth v0.0.14 -> v0.0.16
github.com/muesli/termenv v0.15.1 -> v0.16.0
github.com/rivo/uniseg v0.2.0 -> v0.4.7

@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 5f01431 to 35c64a4 Compare May 12, 2025 19:07
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.1 fix(deps): update module github.com/charmbracelet/log to v0.4.2 May 12, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.2 fix(deps): update module github.com/charmbracelet/log to v0.4.2 - autoclosed Jul 13, 2025
@renovate renovate bot closed this Jul 13, 2025
@renovate renovate bot deleted the renovate/github.com-charmbracelet-log-0.x branch July 13, 2025 18:12
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.2 - autoclosed fix(deps): update module github.com/charmbracelet/log to v0.4.2 Jul 13, 2025
@renovate renovate bot reopened this Jul 13, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch from 9bc31d9 to 35c64a4 Compare July 13, 2025 21:01
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.2 fix(deps): update module github.com/charmbracelet/log to v0.4.2 - autoclosed Oct 11, 2025
@renovate renovate bot closed this Oct 11, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/log to v0.4.2 - autoclosed fix(deps): update module github.com/charmbracelet/log to v0.4.2 Oct 11, 2025
@renovate renovate bot reopened this Oct 11, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-log-0.x branch 2 times, most recently from 35c64a4 to 1e132eb Compare October 11, 2025 08:59
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.

1 participant