v0.1.9 kv flag added, unix and nofs build tags, heartbeat and rotation filename and test update

This commit is contained in:
2026-08-01 05:09:51 -04:00
parent 24b7deebdb
commit 2af9af2359
15 changed files with 873 additions and 481 deletions
+12 -3
View File
@@ -3,15 +3,24 @@ package log
import (
"io"
"time"
"github.com/lixenwraith/log/formatter"
)
// Context carries caller-stamped values emitted with a record
type Context = formatter.Context
// ContextSlots is the number of correlation values a Context carries
const ContextSlots = formatter.ContextSlots
// logRecord represents a single log entry
type logRecord struct {
Flags int64
TimeStamp time.Time
Level int64
Trace string
Args []any
Ctx Context
Flags int64
Level int64
}
// TimerSet holds all timers used in processLogs
@@ -27,4 +36,4 @@ type TimerSet struct {
// sink is a wrapper around an io.Writer, atomic value type change workaround
type sink struct {
w io.Writer
}
}