We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bbebc7 commit 79a101dCopy full SHA for 79a101d
logger.go
@@ -1,10 +1,11 @@
1
-package main
+package echozap
2
3
import (
4
+ "time"
5
+
6
"github.com/labstack/echo/v4"
7
"go.uber.org/zap"
8
"go.uber.org/zap/zapcore"
- "time"
9
)
10
11
// ZapLogger is a middleware and zap to provide an "access log" like logging for each request.
logger_test.go
@@ -1,13 +1,14 @@
+ "net/http"
+ "net/http/httptest"
+ "testing"
"github.com/stretchr/testify/assert"
"go.uber.org/zap/zaptest/observer"
- "net/http"
- "net/http/httptest"
- "testing"
12
13
14
func TestZapLogger(t *testing.T) {
0 commit comments