ADD:
* `iox` subpackage

FIX:
* `logging` now has a way to return logWritier directly
* added significant `io.*` interface compat to logWriter -- allowing a `logging.Logger` to essentially be used for a large amount of io interaction in other libraries.
This commit is contained in:
brent saner
2025-07-31 03:20:28 -04:00
parent dc2ed32352
commit 532e12c9e2
18 changed files with 368 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ import (
"log"
"os"
`r00t2.io/goutils/bitmask`
"r00t2.io/goutils/bitmask"
)
type logPrio bitmask.MaskBit
@@ -28,6 +28,7 @@ type Logger interface {
Setup() (err error)
Shutdown() (err error)
ToLogger(prio logPrio) (stdLibLog *log.Logger)
ToRaw(prio logPrio) (raw *logWriter)
}
/*