1
0
mirror of https://github.com/taigrr/log-socket synced 2026-03-20 14:52:27 -07:00
Files
log-socket/log/types.go
2025-05-01 18:27:46 -07:00

36 lines
489 B
Go

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