mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 03:12:14 +01:00
huge refactoring
This commit is contained in:
6
test/internalpkg/xlogtest/doc.go
Normal file
6
test/internalpkg/xlogtest/doc.go
Normal file
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
Package xlogtest contains useful
|
||||
functions for tests related
|
||||
to xlog package.
|
||||
*/
|
||||
package xlogtest
|
||||
23
test/internalpkg/xlogtest/xlogtest.go
Normal file
23
test/internalpkg/xlogtest/xlogtest.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package xlogtest
|
||||
|
||||
import (
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/xlog"
|
||||
)
|
||||
|
||||
// DebugLogger creates a xlog.Logger
|
||||
// with xlog.DebugLevel for our tests.
|
||||
func DebugLogger() xlog.Logger {
|
||||
return xlog.New(xlog.DebugLevel, "tests")
|
||||
}
|
||||
|
||||
// InfoLogger creates a xlog.Logger
|
||||
// with xlog.InfoLevel for our tests.
|
||||
func InfoLogger() xlog.Logger {
|
||||
return xlog.New(xlog.DebugLevel, "tests")
|
||||
}
|
||||
|
||||
// ErrorLogger creates a xlog.Logger
|
||||
// with xlog.ErrorLevel for our tests.
|
||||
func ErrorLogger() xlog.Logger {
|
||||
return xlog.New(xlog.ErrorLevel, "tests")
|
||||
}
|
||||
Reference in New Issue
Block a user