Skip to content

Commit

Permalink
up: update the logger define
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 26, 2021
1 parent 0569152 commit e4bf398
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions logger.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package gsr

// SimpleLogger interface
type SimpleLogger interface {
// Printer interface definition
type Printer interface {
Print(v ...interface{})
Printf(format string, v ...interface{})
Println(v ...interface{})
}

// StdLogger interface.
// StdLogger interface definition.
// refer the go "log" package.
type StdLogger interface {
Print(v ...interface{})
Printf(format string, v ...interface{})
Println(v ...interface{})
Printer
Fatal(v ...interface{})
Fatalf(format string, v ...interface{})
Fatalln(v ...interface{})
Expand All @@ -21,7 +19,7 @@ type StdLogger interface {
Panicln(v ...interface{})
}

// Logger interface
// Logger interface definition
type Logger interface {
StdLogger
Debug(v ...interface{})
Expand Down

0 comments on commit e4bf398

Please sign in to comment.