Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix: fix the lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Apr 17, 2024
1 parent c8e1126 commit b035ba4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions defalt.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Named(name string) *Log { return defaultLogger.Named(name) }
// Sync flushes any buffered log entries.
func Sync() error { return defaultLogger.Sync() }

//****** named after the log level or ending in "Context" for log.Print-style logging
// ****** named after the log level or ending in "Context" for log.Print-style logging

func Debug(args ...any) {
defaultLogger.Debug(args...)
Expand Down Expand Up @@ -146,7 +146,7 @@ func FatalContext(ctx context.Context, args ...any) {
defaultLogger.FatalContext(ctx, args...)
}

//****** ending in "f" or "fContext" for log.Printf-style logging
// ****** ending in "f" or "fContext" for log.Printf-style logging

func Debugf(template string, args ...any) {
defaultLogger.Debugf(template, args...)
Expand Down Expand Up @@ -236,7 +236,7 @@ func FatalwContext(ctx context.Context, msg string, keysAndValues ...any) {
defaultLogger.FatalwContext(ctx, msg, keysAndValues...)
}

//****** ending in "x" or "xContext" for structured logging
// ****** ending in "x" or "xContext" for structured logging

func Debugx(msg string, fields ...Field) {
defaultLogger.Debugx(msg, fields...)
Expand Down
8 changes: 4 additions & 4 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (l *Log) Logx(ctx context.Context, level Level, msg string, fields ...Field
}
}

//****** named after the log level or ending in "Context" for log.Print-style logging
// ****** named after the log level or ending in "Context" for log.Print-style logging

// Debug (see DebugContext)
func (l *Log) Debug(args ...any) {
Expand Down Expand Up @@ -255,7 +255,7 @@ func (l *Log) FatalContext(ctx context.Context, args ...any) {
l.Log(ctx, FatalLevel, args...)
}

//****** ending in "f" or "fContext" for log.Printf-style logging
// ****** ending in "f" or "fContext" for log.Printf-style logging

// Debugf see DebugfContext
func (l *Log) Debugf(template string, args ...any) {
Expand Down Expand Up @@ -328,7 +328,7 @@ func (l *Log) FatalfContext(ctx context.Context, template string, args ...any) {
l.Logf(ctx, FatalLevel, template, args...)
}

//****** ending in "w" or "wContext" for loosely-typed structured logging
// ****** ending in "w" or "wContext" for loosely-typed structured logging

// Debugw see DebugwContext
func (l *Log) Debugw(msg string, keysAndValues ...any) {
Expand Down Expand Up @@ -411,7 +411,7 @@ func (l *Log) FatalwContext(ctx context.Context, msg string, keysAndValues ...an
l.Logw(ctx, FatalLevel, msg, keysAndValues...)
}

//****** ending in "x" or "xContext" for structured logging
// ****** ending in "x" or "xContext" for structured logging

// Debug (see DebugContext)
func (l *Log) Debugx(msg string, fields ...Field) {
Expand Down

0 comments on commit b035ba4

Please sign in to comment.