open-consul/logger
Siva Prasad 59dea9a31f
Adds a new command line flag -log-file for file based logging. (#4581)
* Added log-file flag to capture Consul logs in a user specified file

* Refactored code.

* Refactored code. Added flags to rotate logs based on bytes and duration

* Added the flags for log file and log rotation on the webpage

* Fixed TestSantize from failing due to the addition of 3 flags

* Introduced changes : mutex, data-dir log writes, rotation logic

* Added test for logfile and updated the default log destination for docs

* Log name now uses UnixNano

* TestLogFile is now uses t.Parallel()

* Removed unnecessary int64Val function

* Updated docs to reflect default log name for log-file

* No longer writes to data-dir and adds .log if the filename has no extension
2018-08-29 16:56:58 -04:00
..
gated_writer.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00
gated_writer_test.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00
log_levels.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00
log_writer.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
log_writer_test.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00
logfile.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
logfile_test.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
logger.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
syslog.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00
syslog_test.go Moves logger setup into its own package. (#2471) 2016-11-03 21:14:56 -07:00