mirror of https://github.com/gofiber/fiber.git
19 lines
343 B
Go
19 lines
343 B
Go
package logger
|
|
|
|
import (
|
|
"sync/atomic"
|
|
"time"
|
|
)
|
|
|
|
// Data is a struct to define some variables to use in custom logger function.
|
|
type Data struct {
|
|
Start time.Time
|
|
Stop time.Time
|
|
ChainErr error
|
|
Timestamp atomic.Value
|
|
Pid string
|
|
ErrPaddingStr string
|
|
TemplateChain [][]byte
|
|
LogFuncChain []LogFunc
|
|
}
|