ADDED:
* logging.Logger objects now are able to return a stdlib *log.Logger.
This commit is contained in:
brent saner
2024-06-19 18:57:26 -04:00
parent ae49f42c0c
commit e5191383a7
12 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package logging
// nulLWriter writes... nothing. To avoid errors, however, in downstream code it pretends it does (n will *always* == len(b)).
func (nw *nullWriter) Write(b []byte) (n int, err error) {
if b == nil {
return
}
n = len(b)
return
}