Madhu Rajanna
a9044cb33d
logging: log in UTC timezone
...
create a custom log.Formatter which switches to UTC
Fixes: #1355
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com >
2018-12-11 13:22:49 +05:30
Madhu Rajanna
bc57805ca2
Fix go vet issues
...
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com >
2018-12-10 13:27:17 +05:30
Prashanth Pai
376f6db76a
log: Turn off standard library logging
...
The benign log messages logged by net/rpc package's server.Register()
is very annoying. The enhancement introduced by bdaa2c97 (PR #1237 )
amplified this already excessive logging.
Logging by code in standard library is now disabled. Earlier it was
being redirected to logrus's io.Writer.
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2018-09-25 14:16:57 +05:30
Kaushal M
24552670dc
Remove prefixed log formatter
...
Just add source location as a field to all logs.
2018-02-14 15:49:15 +05:30
Prashanth Pai
138cd8e2b5
Re-use defined constants and fix typos
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2018-01-30 16:39:51 +05:30
Prashanth Pai
3e68bdb6ad
Make log entry resemble glusterfs logging format
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2017-12-04 12:32:40 +05:30
Prashanth Pai
eaf217d8d8
Put [] around source for better seggregation
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2017-12-04 11:07:16 +05:30
Prashanth Pai
da626d650b
Format timestamp
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2017-12-01 20:27:48 +05:30
Prashanth Pai
6af552830c
Show source information in logging metadata
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2017-12-01 18:00:27 +05:30
Prashanth Pai
c6dcfe1869
Add file name, function name and line number to log entries
...
Signed-off-by: Prashanth Pai <ppai@redhat.com >
2017-12-01 14:39:30 +05:30
Kaushal M
d1c0a9c44c
Fix lint warnings
2017-11-17 16:15:23 +05:30
Kaushal M
0b9cbd782e
Common flags and help for logging
2017-11-17 12:15:49 +05:30
Kaushal M
7755128589
Common log initialization for GD2 and CLI
2017-11-16 20:04:44 +05:30