Skip to content

Conversation

@bombnp
Copy link
Contributor

@bombnp bombnp commented Nov 22, 2025

Summary

  1. All log functions (Info, InfoContext, etc.) now accepts additional parameters as slog.Attr only, instead of any
  2. Added nil check in slogx.Stringer to prevent panics when passing nil
  3. Updated middlewareErrorStackTrace to use slogx.Stringer instead of slogx.Any for better stacktrace readability and allowing us to cmd + click in terminal to go to source code.
image image
  1. Added middlewareDurationHuman to add human-readable field for every duration attribute. Used in GCP and JSON mode where duration is serialized as milliseconds.
  2. Force middlewareErrorStackTrace to always be enabled if output is not text
  3. Prevent tint attribute from leaking stacktrace into error key (which would duplicate with error_stacktrace key)
  4. Added SetLogger function

Copy link
Member

@Planxnx Planxnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✨

@Planxnx Planxnx merged commit 4f8a9d5 into Cleverse:main Nov 24, 2025
1 check failed
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.

2 participants