1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00
log-socket/log/types.go
Tai Groot 0fa4de7961
Revert "add ability to embed other loggers of varying functionality"
This reverts commit 50c507c8f4d6939d0feda2a5148800e4c9fc5d19.
2023-03-29 14:06:00 -07:00

36 lines
486 B
Go

package log
import "time"
type LogWriter chan Entry
type Level int
const (
LTrace Level = iota
LDebug
LInfo
LNotice
LWarn
LError
LPanic
LFatal
)
type Client struct {
LogLevel Level `json:"level"`
writer LogWriter
initialized bool
}
type Entry struct {
Timestamp time.Time `json:"timestamp"`
Output string `json:"output"`
File string `json:"file"`
Level string `json:"level"`
level Level
}
type Logger struct {
FileInfoDepth int
}