removed deprecated log package

This commit is contained in:
Colin Henry 2024-09-05 23:36:49 -07:00
parent 612a5c8387
commit 74f9fc64f4
3 changed files with 0 additions and 31 deletions

View File

@ -1,3 +0,0 @@
package log
// Deprecated: use log/slog

View File

@ -1,14 +0,0 @@
package log
// Logger is a logging interface with only the essentials that a function that needs to log should care about. Compatible with standard Go logger.
type Interface interface {
Fatal(v ...any)
Fatalf(format string, v ...any)
Fatalln(v ...any)
Panic(v ...any)
Panicf(format string, v ...any)
Panicln(v ...any)
Print(v ...any)
Printf(format string, v ...any)
Println(v ...any)
}

View File

@ -1,14 +0,0 @@
package log
// None provides a logger that doesnt log anything
type None struct{}
func (n None) Fatal(v ...any) {}
func (n None) Fatalf(format string, v ...any) {}
func (n None) Fatalln(v ...any) {}
func (n None) Panic(v ...any) {}
func (n None) Panicf(format string, v ...any) {}
func (n None) Panicln(v ...any) {}
func (n None) Print(v ...any) {}
func (n None) Printf(format string, v ...any) {}
func (n None) Println(v ...any) {}