1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00
log-socket/logger/structs.go

21 lines
359 B
Go

package logger
import "time"
type LogWriter chan Entry
type Level int
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
}