consul/agent/config
Siva Prasad ca35d04472
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
..
builder.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
config.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
default.go Gossip tuneables (#4444) 2018-07-26 11:39:49 -04:00
default_oss.go Add enterprise default config section 2018-02-05 13:33:59 -08:00
doc.go Metrics service prefix (#3498) 2017-09-26 17:49:55 -07:00
flags.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
flags_test.go Make Serf LAN & WAN port configurable from CLI 2018-07-21 02:17:21 +09:00
flagset.go
merge.go Changes maps to merge vs. overwrite when processing configs. 2017-12-13 16:06:01 -08:00
merge_test.go Changes maps to merge vs. overwrite when processing configs. 2017-12-13 16:06:01 -08:00
patch_hcl.go
patch_hcl_test.go
runtime.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
runtime_test.go Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
segment_oss.go Renames "segments" to "segment" to be consistent with other files. 2017-11-29 18:36:52 -08:00
segment_oss_test.go Renames "segments" to "segment" to be consistent with other files. 2017-11-29 18:36:52 -08:00
translate.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00
translate_test.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00