/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/logger/null.go
38 строк
2 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package logger import "context" type Null struct{} func NewNull() *Null { return &Null{} } // Verify Null fully implements the Logger interface. var _ Logger = (*Null)(nil) func (l *Null) Debug(_ string, _ ...any) {} func (l *Null) Info(_ string, _ ...any) {} func (l *Null) Warning(_ string, _ ...any) {} func (l *Null) Notice(_ string, _ ...any) {} func (l *Null) Errorf(_ string, _ ...any) {} func (l *Null) Critical(_ string, _ ...any) {} func (l *Null) CCriticalf(_ context.Context, _ string, _ ...any) {} func (l *Null) Fatalf(_ string, _ ...any) {} func (l *Null) CFatalf(_ context.Context, _ string, _ ...any) {} func (l *Null) Profile(_ string, _ ...any) {} func (l *Null) CDebugf(_ context.Context, _ string, _ ...any) {} func (l *Null) CInfof(_ context.Context, _ string, _ ...any) {} func (l *Null) CNoticef(_ context.Context, _ string, _ ...any) {} func (l *Null) CWarningf(_ context.Context, _ string, _ ...any) {} func (l *Null) CErrorf(_ context.Context, _ string, _ ...any) {} func (l *Null) Error(_ string, _ ...any) {} func (l *Null) Configure(_ string, _ bool, _ string) {} func (l *Null) CloneWithAddedDepth(_ int) Logger { return l } func (l *Null) SetExternalHandler(_ ExternalHandler) {} func (l *Null) Shutdown() {}