Skip to content

Commit 00f902d

Browse files
committed
log: linter fixed
1 parent 8d63903 commit 00f902d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

log/log.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ type LoggerOptions struct {
2222
logFile string
2323
}
2424

25-
// Type for setter functions that specify LoggerOptions parameters
25+
// LoggerOption is type for setter functions that specify LoggerOptions parameters
2626
type LoggerOption func(*LoggerOptions)
2727

28-
// Setter for LoggerOptions.logFile parameter
28+
// LogFile is setter for LoggerOptions.logFile parameter
2929
func LogFile(logFile string) LoggerOption {
3030
return func(args *LoggerOptions) {
3131
args.logFile = logFile
@@ -87,7 +87,7 @@ type Logger struct {
8787
logFiles *LogFiles
8888
}
8989

90-
// Вefault value that disables the use of the log file
90+
// NoLogFile is default value that disables the use of the log file
9191
const NoLogFile string = ""
9292

9393
// New creates new logger.
@@ -193,14 +193,14 @@ func LevelFromString(s string) LogLevel {
193193
}
194194
}
195195

196-
// Closes stdout and stderr if file pointers are not os.Stdout or os.Stderr
196+
// Close closes stdout and stderr if file pointers are not os.Stdout or os.Stderr
197197
func (files *LogFiles) Close() {
198198
if files.stdout != os.Stdout {
199199
files.stdout.Close()
200200
}
201201
}
202202

203-
// Сhecks the path to the file is correct
203+
// IsValidLogFile checks the path to the file is correct
204204
func IsValidLogFile(logFile string) error {
205205
if logFile == NoLogFile {
206206
return nil
@@ -215,7 +215,7 @@ func IsValidLogFile(logFile string) error {
215215
return nil
216216
}
217217

218-
// Creates and/or opens a file for logging if the path to the file was specified.
218+
// GetLogFiles creates and/or opens a file for logging if the path to the file was specified.
219219
// Otherwise uses os.Stdout and os.Stderr for logging
220220
func GetLogFiles(logFile string) *LogFiles {
221221
if logFile == NoLogFile {

0 commit comments

Comments
 (0)