Skip to content

Commit

Permalink
go mod tidy and gofmt -s -w
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Apr 23, 2024
1 parent ee0c230 commit c27a602
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Logger struct {
// If set to `TimeFormatUnix/TimeFormatUnixMs`, timestamps will be formatted.
TimeFormat string

// TimeLocation specifices that the location of TimeFormat used. Uses time.Local if empty.
// TimeLocation specifies that the location of TimeFormat used. Uses time.Local if empty.
TimeLocation *time.Location

// Writer specifies the writer of output. It uses a wrapped os.Stderr Writer in if empty.
Expand Down
3 changes: 2 additions & 1 deletion console.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ func IsTerminal(fd uintptr) bool {
// IMPORTANT: Don't use ConsoleWriter on critical path of a high concurrency and low latency application.
//
// Default output format:
// {Time} {Level} {Goid} {Caller} > {Message} {Key}={Value} {Key}={Value}
//
// {Time} {Level} {Goid} {Caller} > {Message} {Key}={Value} {Key}={Value}
//
// Note: The performance of ConsoleWriter is not good enough, because it will
// parses JSON input into structured records, then output in a specific order.
Expand Down
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// `/var/log/foo/server.log`, a backup created at 6:30pm on Nov 11 2016 would
// use the filename `/var/log/foo/server.2016-11-04T18-30-00.log`
//
// Cleaning Up Old Log Files
// # Cleaning Up Old Log Files
//
// Whenever a new logfile gets created, old log files may be deleted. The most
// recent files according to filesystem modified time will be retained, up to a
Expand Down
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type Logger struct {
// If set with `TimeFormatUnix`, `TimeFormatUnixMs`, times are formated as UNIX timestamp.
TimeFormat string

// TimeLocation specifices that the location which TimeFormat used. It uses time.Local if empty.
// TimeLocation specifies that the location which TimeFormat used. It uses time.Local if empty.
TimeLocation *time.Location

// Context specifies an optional context of logger.
Expand Down

0 comments on commit c27a602

Please sign in to comment.