MCPcopy
hub / github.com/charmbracelet/bubbletea / LogOptionsSetter

Interface LogOptionsSetter

logging.go:29–32  ·  view source on GitHub ↗

LogOptionsSetter is an interface implemented by stdlib's log and charm's log libraries.

Source from the content-addressed store, hash-verified

27// LogOptionsSetter is an interface implemented by stdlib's log and charm's log
28// libraries.
29type LogOptionsSetter interface {
30 SetOutput(io.Writer)
31 SetPrefix(string)
32}
33
34// LogToFileWith does allows to call LogToFile with a custom LogOptionsSetter.
35func LogToFileWith(path string, prefix string, log LogOptionsSetter) (*os.File, error) {

Callers 3

LogToFileWithFunction · 0.80
mainFunction · 0.80
LogToFileWithFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…