9
9
)
10
10
11
11
var (
12
- //DefaultOutput is used as the default log output.
12
+ // DefaultOutput is used as the default log output.
13
13
DefaultOutput io.Writer = os .Stderr
14
14
15
15
// DefaultLevel is used as the default log level.
@@ -28,7 +28,7 @@ const (
28
28
// of actions in code, such as function enters/exits, etc.
29
29
Trace Level = 1
30
30
31
- // Debug information for programmer lowlevel analysis.
31
+ // Debug information for programmer low-level analysis.
32
32
Debug Level = 2
33
33
34
34
// Info information about steady state operations.
@@ -44,13 +44,13 @@ const (
44
44
Off Level = 6
45
45
)
46
46
47
- // Format is a simple convience type for when formatting is required. When
47
+ // Format is a simple convenience type for when formatting is required. When
48
48
// processing a value of this type, the logger automatically treats the first
49
49
// argument as a Printf formatting string and passes the rest as the values
50
50
// to be formatted. For example: L.Info(Fmt{"%d beans/day", beans}).
51
51
type Format []interface {}
52
52
53
- // Fmt returns a Format type. This is a convience function for creating a Format
53
+ // Fmt returns a Format type. This is a convenience function for creating a Format
54
54
// type.
55
55
func Fmt (str string , args ... interface {}) Format {
56
56
return append (Format {str }, args ... )
@@ -134,7 +134,7 @@ func (l Level) String() string {
134
134
}
135
135
}
136
136
137
- // Logger describes the interface that must be implemeted by all loggers.
137
+ // Logger describes the interface that must be implemented by all loggers.
138
138
type Logger interface {
139
139
// Args are alternating key, val pairs
140
140
// keys must be strings
@@ -236,7 +236,7 @@ type LoggerOptions struct {
236
236
// Name of the subsystem to prefix logs with
237
237
Name string
238
238
239
- // The threshold for the logger. Anything less severe is supressed
239
+ // The threshold for the logger. Anything less severe is suppressed
240
240
Level Level
241
241
242
242
// Where to write the logs to. Defaults to os.Stderr if nil
@@ -267,7 +267,7 @@ type LoggerOptions struct {
267
267
// because setting TimeFormat to empty assumes the default format.
268
268
DisableTime bool
269
269
270
- // Color the output. On Windows, colored logs are only avaiable for io.Writers that
270
+ // Color the output. On Windows, colored logs are only available for io.Writers that
271
271
// are concretely instances of *os.File.
272
272
Color ColorOption
273
273
@@ -282,8 +282,8 @@ type LoggerOptions struct {
282
282
283
283
// IndependentLevels causes subloggers to be created with an independent
284
284
// copy of this logger's level. This means that using SetLevel on this
285
- // logger will not effect any subloggers, and SetLevel on any subloggers
286
- // will not effect the parent or sibling loggers.
285
+ // logger will not affect any subloggers, and SetLevel on any subloggers
286
+ // will not affect the parent or sibling loggers.
287
287
IndependentLevels bool
288
288
}
289
289
0 commit comments