Delete trace, not needed bloat

pull/66/head
rwxrob 2 years ago
parent 2cbd3cc3bb
commit 94e699ba94
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

@ -1,28 +0,0 @@
/*
Package trace provides a tracing framework for use by Bonzai applications. Application developers can use the existing flags or create their own. Developers should start their own flags above 100.
*/
package trace
// Flags must always be 0 in production code. Developers may alter it
// during development but no released code should ever make permanent
// changes since collisions between Bonzai command packages would be
// likely.
var Flags = 0
const (
All = 1 << (iota + 1)
// like syslog
Emerg
Alert
Error
Warn
Notice
Info
Debug
// bonzai specific
AutoUpdate
)

@ -1,20 +0,0 @@
package trace_test
import (
"fmt"
"github.com/rwxrob/bonzai/trace"
)
func ExampleTrace() {
fmt.Println(trace.Flags)
fmt.Println(trace.AutoUpdate)
trace.Flags |= trace.AutoUpdate
fmt.Println(trace.Flags == trace.Flags|trace.AutoUpdate)
fmt.Println(trace.Flags == trace.Flags|trace.Emerg)
// Output:
// 0
// 512
// true
// false
}
Loading…
Cancel
Save