New logger for the Traefik logs

This commit is contained in:
Ludovic Fernandez 2022-11-21 18:36:05 +01:00 committed by GitHub
parent 27c02b5a56
commit 56f7515ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
297 changed files with 2337 additions and 1934 deletions

17
pkg/logs/aws_test.go Normal file
View file

@ -0,0 +1,17 @@
package logs
import (
"os"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestNewAWSWrapper(t *testing.T) {
out := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}
logger := NewAWSWrapper(zerolog.New(out).With().Caller().Logger())
logger.Log("foo")
}