MCPcopy
hub / github.com/Jguer/yay / NewLogger

Function NewLogger

pkg/text/service.go:22–30  ·  view source on GitHub ↗
(stdout, stderr io.Writer, r io.Reader, debug bool, name string)

Source from the content-addressed store, hash-verified

20}
21
22func NewLogger(stdout, stderr io.Writer, r io.Reader, debug bool, name string) *Logger {
23 return &Logger{
24 debug: debug,
25 name: name,
26 r: r,
27 stderr: stderr,
28 stdout: stdout,
29 }
30}
31
32func (l *Logger) Child(name string) *Logger {
33 return NewLogger(l.stdout, l.stderr, l.r, l.debug, name)

Callers 15

TestPrintPkgbuildsFunction · 0.92
newTestLoggerFunction · 0.92
TestYogurtMenuAURDBFunction · 0.92
printUpdateListFunction · 0.92
TestPrintUpdateListFunction · 0.92
TestSyncUpgradeFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestPrintPkgbuildsFunction · 0.74
newTestLoggerFunction · 0.74
TestYogurtMenuAURDBFunction · 0.74
TestPrintUpdateListFunction · 0.74
TestSyncUpgradeFunction · 0.74
newTestLoggerFunction · 0.74