You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
482 B

package logx
type nopWriter struct{}
func (n nopWriter) Alert(v any) {
}
func (n nopWriter) Close() error {
return nil
}
func (n nopWriter) Debug(v any, fields ...LogField) {
}
func (n nopWriter) Error(v any, fields ...LogField) {
}
func (n nopWriter) Info(v any, fields ...LogField) {
}
func (n nopWriter) Severe(v any) {
}
func (n nopWriter) Slow(v any, fields ...LogField) {
}
func (n nopWriter) Stack(v any) {
}
func (n nopWriter) Stat(v any, fields ...LogField) {
}