@@ -96,7 +96,7 @@ func RedirectStdLogAt(logger Logger, level zapcore.Level) (func(), error) {
96
96
return nil , errors .New ("log: only supports redirecting std logs to trpc zap logger" )
97
97
}
98
98
99
- // Trace logs to TRACE log. Arguments are handled in the manner of fmt.Print .
99
+ // Trace logs to TRACE log. Arguments are handled in the manner of fmt.Println .
100
100
func Trace (args ... interface {}) {
101
101
if traceEnabled {
102
102
GetDefaultLogger ().Trace (args ... )
@@ -110,7 +110,7 @@ func Tracef(format string, args ...interface{}) {
110
110
}
111
111
}
112
112
113
- // TraceContext logs to TRACE log. Arguments are handled in the manner of fmt.Print .
113
+ // TraceContext logs to TRACE log. Arguments are handled in the manner of fmt.Println .
114
114
func TraceContext (ctx context.Context , args ... interface {}) {
115
115
if ! traceEnabled {
116
116
return
@@ -134,7 +134,7 @@ func TraceContextf(ctx context.Context, format string, args ...interface{}) {
134
134
GetDefaultLogger ().Tracef (format , args ... )
135
135
}
136
136
137
- // Debug logs to DEBUG log. Arguments are handled in the manner of fmt.Print .
137
+ // Debug logs to DEBUG log. Arguments are handled in the manner of fmt.Println .
138
138
func Debug (args ... interface {}) {
139
139
GetDefaultLogger ().Debug (args ... )
140
140
}
@@ -144,7 +144,7 @@ func Debugf(format string, args ...interface{}) {
144
144
GetDefaultLogger ().Debugf (format , args ... )
145
145
}
146
146
147
- // Info logs to INFO log. Arguments are handled in the manner of fmt.Print .
147
+ // Info logs to INFO log. Arguments are handled in the manner of fmt.Println .
148
148
func Info (args ... interface {}) {
149
149
GetDefaultLogger ().Info (args ... )
150
150
}
@@ -154,7 +154,7 @@ func Infof(format string, args ...interface{}) {
154
154
GetDefaultLogger ().Infof (format , args ... )
155
155
}
156
156
157
- // Warn logs to WARNING log. Arguments are handled in the manner of fmt.Print .
157
+ // Warn logs to WARNING log. Arguments are handled in the manner of fmt.Println .
158
158
func Warn (args ... interface {}) {
159
159
GetDefaultLogger ().Warn (args ... )
160
160
}
@@ -164,7 +164,7 @@ func Warnf(format string, args ...interface{}) {
164
164
GetDefaultLogger ().Warnf (format , args ... )
165
165
}
166
166
167
- // Error logs to ERROR log. Arguments are handled in the manner of fmt.Print .
167
+ // Error logs to ERROR log. Arguments are handled in the manner of fmt.Println .
168
168
func Error (args ... interface {}) {
169
169
GetDefaultLogger ().Error (args ... )
170
170
}
@@ -174,7 +174,7 @@ func Errorf(format string, args ...interface{}) {
174
174
GetDefaultLogger ().Errorf (format , args ... )
175
175
}
176
176
177
- // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print .
177
+ // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Println .
178
178
// All Fatal logs will exit by calling os.Exit(1).
179
179
// Implementations may also call os.Exit() with a non-zero exit code.
180
180
func Fatal (args ... interface {}) {
@@ -211,7 +211,7 @@ func WithContextFields(ctx context.Context, fields ...string) context.Context {
211
211
return ctx
212
212
}
213
213
214
- // DebugContext logs to DEBUG log. Arguments are handled in the manner of fmt.Print .
214
+ // DebugContext logs to DEBUG log. Arguments are handled in the manner of fmt.Println .
215
215
func DebugContext (ctx context.Context , args ... interface {}) {
216
216
if l , ok := codec .Message (ctx ).Logger ().(Logger ); ok {
217
217
l .Debug (args ... )
@@ -229,7 +229,7 @@ func DebugContextf(ctx context.Context, format string, args ...interface{}) {
229
229
GetDefaultLogger ().Debugf (format , args ... )
230
230
}
231
231
232
- // InfoContext logs to INFO log. Arguments are handled in the manner of fmt.Print .
232
+ // InfoContext logs to INFO log. Arguments are handled in the manner of fmt.Println .
233
233
func InfoContext (ctx context.Context , args ... interface {}) {
234
234
if l , ok := codec .Message (ctx ).Logger ().(Logger ); ok {
235
235
l .Info (args ... )
@@ -247,7 +247,7 @@ func InfoContextf(ctx context.Context, format string, args ...interface{}) {
247
247
GetDefaultLogger ().Infof (format , args ... )
248
248
}
249
249
250
- // WarnContext logs to WARNING log. Arguments are handled in the manner of fmt.Print .
250
+ // WarnContext logs to WARNING log. Arguments are handled in the manner of fmt.Println .
251
251
func WarnContext (ctx context.Context , args ... interface {}) {
252
252
if l , ok := codec .Message (ctx ).Logger ().(Logger ); ok {
253
253
l .Warn (args ... )
@@ -266,7 +266,7 @@ func WarnContextf(ctx context.Context, format string, args ...interface{}) {
266
266
267
267
}
268
268
269
- // ErrorContext logs to ERROR log. Arguments are handled in the manner of fmt.Print .
269
+ // ErrorContext logs to ERROR log. Arguments are handled in the manner of fmt.Println .
270
270
func ErrorContext (ctx context.Context , args ... interface {}) {
271
271
if l , ok := codec .Message (ctx ).Logger ().(Logger ); ok {
272
272
l .Error (args ... )
@@ -284,7 +284,7 @@ func ErrorContextf(ctx context.Context, format string, args ...interface{}) {
284
284
GetDefaultLogger ().Errorf (format , args ... )
285
285
}
286
286
287
- // FatalContext logs to ERROR log. Arguments are handled in the manner of fmt.Print .
287
+ // FatalContext logs to ERROR log. Arguments are handled in the manner of fmt.Println .
288
288
// All Fatal logs will exit by calling os.Exit(1).
289
289
// Implementations may also call os.Exit() with a non-zero exit code.
290
290
func FatalContext (ctx context.Context , args ... interface {}) {
0 commit comments