Source File
prefixLogger.go
Belonging Package
google.golang.org/grpc/internal/grpclog
package grpclog
import (
)
type PrefixLogger struct {
logger DepthLoggerV2
prefix string
}
func ( *PrefixLogger) ( string, ...interface{}) {
func ( *PrefixLogger) ( string, ...interface{}) {
if != nil {
= .prefix +
.logger.WarningDepth(1, fmt.Sprintf(, ...))
return
}
WarningDepth(1, fmt.Sprintf(, ...))
}
func ( *PrefixLogger) ( string, ...interface{}) {
if != nil {
= .prefix +
.logger.ErrorDepth(1, fmt.Sprintf(, ...))
return
}
ErrorDepth(1, fmt.Sprintf(, ...))
}
func ( *PrefixLogger) ( string, ...interface{}) {
if !Logger.V(2) {
return
}
func ( DepthLoggerV2, string) *PrefixLogger {
return &PrefixLogger{logger: , prefix: }
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |