diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 21:41:06 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 21:41:06 +0200 |
commit | f243f487a1d21eee482e4635d8ff719021b22349 (patch) | |
tree | a2363a612aaeea316f61c891c726df23aea53e0e | |
parent | 40f7f691d4143c7be4dc72babb2b5288cbfef45c (diff) | |
download | feed2imap-go-f243f487a1d21eee482e4635d8ff719021b22349.tar.gz feed2imap-go-f243f487a1d21eee482e4635d8ff719021b22349.tar.bz2 feed2imap-go-f243f487a1d21eee482e4635d8ff719021b22349.zip |
Slightly enhance logging
-rw-r--r-- | pkg/log/log.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/log/log.go b/pkg/log/log.go index 1e419e3..b68d026 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -6,10 +6,10 @@ import ( "os" ) -var debugLogger = log.New(os.Stdout, "", log.LstdFlags) -var verboseLogger = log.New(os.Stdout, "", log.LstdFlags) -var errorLogger = log.New(os.Stderr, "ERROR ", log.LstdFlags|log.Lmsgprefix) -var warnLogger = log.New(os.Stdout, "WARN ", log.LstdFlags|log.Lmsgprefix) +var debugLogger = log.New(os.Stdout, "DEBUG: ", log.LstdFlags|log.Lmsgprefix) +var verboseLogger = log.New(os.Stdout, " INFO: ", log.LstdFlags|log.Lmsgprefix) +var errorLogger = log.New(os.Stderr, "ERROR: ", log.LstdFlags|log.Lmsgprefix) +var warnLogger = log.New(os.Stdout, " WARN: ", log.LstdFlags|log.Lmsgprefix) type logLevel byte |