Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

feat: use slog from the std library for logging #66

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

dartdart26
Copy link
Contributor

@dartdart26 dartdart26 commented Jan 19, 2024

The slog package provides structured logging and adds the following as compared to previous fmt.Print() logging:

  • timestamp
  • module key-value
  • potential performance improvement
  • a number of other logging features.

Specify a min go version of 1.21 for slog to be available. Also, update GitHib CI to use checkout and setup-go v4.

@dartdart26 dartdart26 self-assigned this Jan 19, 2024
@dartdart26 dartdart26 force-pushed the petar/slog branch 2 times, most recently from 466f3be to 565635e Compare February 15, 2024 14:06
The slog package provides structured logging and adds the following as
compared to previous fmt.Print() logging:
 * timestamp
 * module key-value
 * potential performance improvement
 * a number of other logging features.

Specify a min go version of 1.21 for slog to be available. Also, update
GitHib CI to use checkout and setup-go @v4.
@dartdart26 dartdart26 merged commit c034ccd into main Feb 19, 2024
2 checks passed
@dartdart26 dartdart26 deleted the petar/slog branch February 19, 2024 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants