22 lines
290 B
Go
22 lines
290 B
Go
package logger
|
|
|
|
type Content interface {
|
|
Msg(string)
|
|
Msgf(string, ...any)
|
|
Str(string, string) Content
|
|
Err(error) Content
|
|
}
|
|
|
|
type LogLevel interface {
|
|
Info() Content
|
|
Warn() Content
|
|
Error() Content
|
|
Fatal() Content
|
|
Debug() Content
|
|
Trace() Content
|
|
}
|
|
|
|
type Log interface {
|
|
LogLevel
|
|
}
|