Lines Matching defs:Logger
57 type Logger struct { struct
58 outMu sync.Mutex
59 out io.Writer // destination for output
61 prefix atomic.Pointer[string] // prefix on each line to identify the logger (but see Lmsgprefix)
62 flag atomic.Int32 // properties
63 isDiscard atomic.Bool
80 func (l *Logger) SetOutput(w io.Writer) {
193 func (l *Logger) Output(calldepth int, s string) error {
202 func (l *Logger) output(pc uintptr, calldepth int, appendOutput func([]byte) []byte) error {
259 func (l *Logger) Print(v ...any) {
267 func (l *Logger) Printf(format string, v ...any) {
275 func (l *Logger) Println(v ...any) {
282 func (l *Logger) Fatal(v ...any) {
288 func (l *Logger) Fatalf(format string, v ...any) {
294 func (l *Logger) Fatalln(v ...any) {
300 func (l *Logger) Panic(v ...any) {
307 func (l *Logger) Panicf(format string, v ...any) {
314 func (l *Logger) Panicln(v ...any) {
322 func (l *Logger) Flags() int {
328 func (l *Logger) SetFlags(flag int) {
333 func (l *Logger) Prefix() string {
341 func (l *Logger) SetPrefix(prefix string) {
346 func (l *Logger) Writer() io.Writer {