Add Cmd.Log

pull/53/head v0.0.37
rwxrob 2 years ago
parent 6154cecdd8
commit 38d6eb1ca5
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

@ -5,6 +5,7 @@ package bonzai
import (
"fmt"
"log"
"os"
"strings"
@ -259,6 +260,12 @@ func (x *Cmd) Q(q string) string {
return x.Conf.Query(x.Root.Name, "."+x.Branch()+"."+q)
}
// Log is currently short for log.Printf() but may be supplemented in
// the future to have more fine-grained control of logging.
func (x *Cmd) Log(format string, a ...any) {
log.Printf(format, a...)
}
// TODO C for Cache lookups
// ---------------------- comp.Command interface ----------------------

Loading…
Cancel
Save