Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions json_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"log/slog"
"os"
"strings"
"time"
)

// jsonLeveledLogger provides JSON structured logging using Go's slog library.
Expand Down Expand Up @@ -63,11 +62,6 @@ func newJSONHandlerHelper(w io.Writer) slog.Handler {
ReplaceAttr: func(_ []string, attr slog.Attr) slog.Attr {
// Customize timestamp format
switch attr.Key {
case slog.TimeKey:
attr.Value = slog.StringValue(attr.Value.Time().Format(time.RFC3339))

return attr

case slog.LevelKey:
if lvl, ok := attr.Value.Any().(slog.Level); ok {
attr.Value = slogLevelToSlogStringValue(lvl)
Expand Down
Loading