-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added logger bridge to IABTechLab logger (#2333)
- Loading branch information
1 parent
cdbd8be
commit eb087f1
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package adscert | ||
|
||
import ( | ||
"fmt" | ||
"github.com/golang/glog" | ||
) | ||
|
||
type SignerLogger struct { | ||
} | ||
|
||
func (sl *SignerLogger) Debugf(format string, args ...interface{}) { | ||
//there is no Debug level in glog | ||
glog.Infof(format, args...) | ||
} | ||
|
||
func (sl *SignerLogger) Infof(format string, args ...interface{}) { | ||
glog.Infof(format, args...) | ||
} | ||
|
||
func (sl *SignerLogger) Info(format string) { | ||
glog.Info(format) | ||
} | ||
|
||
func (sl *SignerLogger) Warningf(format string, args ...interface{}) { | ||
glog.Warningf(format, args...) | ||
} | ||
|
||
func (sl *SignerLogger) Errorf(format string, args ...interface{}) { | ||
glog.Errorf(format, args...) | ||
} | ||
|
||
func (sl *SignerLogger) Fatalf(format string, args ...interface{}) { | ||
glog.Fatalf(format, args...) | ||
} | ||
|
||
func (sl *SignerLogger) Panicf(format string, args ...interface{}) { | ||
panic(fmt.Sprintf(format, args...)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters