1
0
mirror of https://github.com/taigrr/log-socket synced 2026-03-21 00:12:19 -07:00

upgrade deps, readme

This commit is contained in:
2025-05-01 18:27:46 -07:00
parent f114098a8c
commit 1c00bc90b8
10 changed files with 143 additions and 91 deletions

View File

@@ -2,9 +2,6 @@ package log
import "time"
type LogWriter chan Entry
type Level int
const (
LTrace Level = iota
LDebug
@@ -16,20 +13,23 @@ const (
LFatal
)
type Client struct {
LogLevel Level `json:"level"`
writer LogWriter
initialized bool
}
type (
LogWriter chan Entry
Level int
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
}
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
}
)