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

chore: add docs #20

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/tag_logger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
fetch-depth: 2
ref: "main"

- name: Fetch tags for adapter
run: git fetch --tags origin '+refs/tags/adapters/${{ matrix.adapter }}/*:refs/tags/adapters/${{ matrix.adapter }}/*'
- name: Fetch tags
run: git fetch --tags origin '+refs/tags/v*:refs/tags/v*'

- name: Files modified
id: check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
fetch-depth: 2
ref: "main"

- name: Fetch tags for adapter
run: git fetch --tags origin '+refs/tags/adapters/${{ matrix.adapter }}/*:refs/tags/adapters/${{ matrix.adapter }}/*'
- name: Fetch tags for modules
run: git fetch --tags origin '+refs/tags/${{ matrix.adapter }}/*:refs/tags/${{ matrix.adapter }}/*'

- name: Files modified
id: check
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/danteay/golog/adapters/slog v0.2.0 h1:out+V8wxc9Qn4cXso13pLKJG18EJI7gAjy4xvnV43v4=
github.com/danteay/golog/adapters/slog v0.2.0/go.mod h1:OmDON9G8qJecuoFjHVyzXb/tIDSH6J9/VW2+4NujrGQ=
github.com/danteay/golog/adapters/slog v0.2.1 h1:Mduw+0EVFGA3fHJJ9u24nUM9ZrndWSBgWxocyJ9/Puo=
github.com/danteay/golog/adapters/slog v0.2.1/go.mod h1:PuACPq2sOwQFEo1hWwfIz7HwwsvSbQn15KMezZm/rkA=
github.com/danteay/golog/fields v0.1.0 h1:/W3Gh3PrVoJsY53sear+yzyLRkIMkM039lOfSNfUFj0=
Expand Down
1 change: 1 addition & 0 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type Adapter interface {
Log(level levels.Level, err error, logFields *fields.Fields, msg string, args ...any)
}

// Logger is the main struct that holds the logger instance.
type Logger struct {
ctx context.Context
logger Adapter
Expand Down