-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dean Karn
authored
May 31, 2022
1 parent
c55d790
commit 50e31b8
Showing
41 changed files
with
491 additions
and
4,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
name: Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restore Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-v1-go- | ||
- name: Test | ||
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./... | ||
|
||
- name: Send Coverage | ||
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x' | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: profile.cov | ||
|
||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.46.2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [8.0.0] - 2022-05-30 | ||
### Added | ||
- Automatic file, line and package addition to error log when using `WithError`. | ||
|
||
### Removed | ||
- Handlers with dependencies; now encouraged to be separate packages. | ||
|
||
### Changed | ||
- Byte Pool now exposed through function only. | ||
- Default error format function and output of wrapped error information. | ||
- Tags & Types are now deduplicated in the default error format function. | ||
- Updated to latest deps. | ||
- CI to use GitHub Actions. | ||
- Documentation. | ||
- Default timestamp format to RFC3339Nano. | ||
- Console logger uses builder pattern. | ||
|
||
|
||
[Unreleased]: https://github.com/go-playground/log/compare/v8.0.0...HEAD | ||
[8.0.0]: https://github.com/go-playground/log/compare/v7.0.2...v8.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
GOCMD=GO111MODULE=on go | ||
|
||
lint: | ||
go vet ./... | ||
linters-install: | ||
@golangci-lint --version >/dev/null 2>&1 || { \ | ||
echo "installing linting tools..."; \ | ||
brew install golangci-lint; \ | ||
} | ||
|
||
lint: linters-install | ||
@golangci-lint run | ||
|
||
test: | ||
$(GOCMD) test -cover -race ./... | ||
|
||
bench: | ||
$(GOCMD) test -run=NONE -bench=. -benchmem ./... | ||
|
||
.PHONY: test lint | ||
.PHONY: test lint linters-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.