mirror of
https://github.com/taigrr/log-socket
synced 2026-03-20 19:32:25 -07:00
enable namespaced logging
This commit is contained in:
@@ -13,12 +13,15 @@ const (
|
||||
LFatal
|
||||
)
|
||||
|
||||
const DefaultNamespace = "default"
|
||||
|
||||
type (
|
||||
LogWriter chan Entry
|
||||
Level int
|
||||
|
||||
Client struct {
|
||||
LogLevel Level `json:"level"`
|
||||
LogLevel Level `json:"level"`
|
||||
Namespaces []string `json:"namespaces"` // Empty slice means all namespaces
|
||||
writer LogWriter
|
||||
initialized bool
|
||||
}
|
||||
@@ -27,9 +30,11 @@ type (
|
||||
Output string `json:"output"`
|
||||
File string `json:"file"`
|
||||
Level string `json:"level"`
|
||||
Namespace string `json:"namespace"`
|
||||
level Level
|
||||
}
|
||||
Logger struct {
|
||||
FileInfoDepth int
|
||||
Namespace string
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user