aboutsummaryrefslogtreecommitdiffstats
path: root/log/logger.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-22 15:28:43 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-22 15:28:43 +0800
commit09d44247f746b177e46754ba56ad7e9bc0bd8ef6 (patch)
tree99c3021187891fc45e098410ca5cdec8a046cd32 /log/logger.go
parent0fe47e98c4d93f952dc7415f401fd03b2664a21d (diff)
downloadgo-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.gz
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.bz2
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.lz
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.xz
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.zst
go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.zip
log: fixes for golint warnings (#16775)
Diffstat (limited to 'log/logger.go')
-rw-r--r--log/logger.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/log/logger.go b/log/logger.go
index 15c83a9b2..a2fe6dc58 100644
--- a/log/logger.go
+++ b/log/logger.go
@@ -24,7 +24,7 @@ const (
LvlTrace
)
-// Aligned returns a 5-character string containing the name of a Lvl.
+// AlignedString returns a 5-character string containing the name of a Lvl.
func (l Lvl) AlignedString() string {
switch l {
case LvlTrace:
@@ -64,7 +64,7 @@ func (l Lvl) String() string {
}
}
-// Returns the appropriate Lvl from a string name.
+// LvlFromString returns the appropriate Lvl from a string name.
// Useful for parsing command line args and configuration files.
func LvlFromString(lvlString string) (Lvl, error) {
switch lvlString {
@@ -95,6 +95,7 @@ type Record struct {
KeyNames RecordKeyNames
}
+// RecordKeyNames gets stored in a Record when the write function is executed.
type RecordKeyNames struct {
Time string
Msg string