Stuart Carnie
d135aecf02
Generate trace logs for a number of significant influx operations
...
* tsdb Store.Open traces all events related to opening files
* op.name : tsdb.open
* retention policy shard deletions
* op.name : retention.delete_check
* all TSM compaction strategies
* op.name : tsm1.compact_group
* series file compactions
* op.name : series_partition.compaction
* continuous query execution (if logging enabled)
* op.name : continuous_querier.execute
* TSI log file compaction
* op_name: index.tsi.compact_log_file
* TSI level compaction
* op.name: index.tsi.compact_to_level
2018-02-21 15:08:49 -07:00
Jonathan A. Sternberg
2bbd96768d
Update logging calls to take advantage of structured logging
...
Includes a style guide that details the basics of how to log.
2018-02-20 10:04:19 -06:00
Stuart Carnie
1303030184
Suppress the InfluxDB banner if the log output is not a TTY
2018-02-14 15:23:58 -07:00
Jonathan A. Sternberg
d864c7e857
Lock the writer for the logger to prevent a race condition when used from multiple goroutines
2018-02-14 14:04:08 -05:00
Jonathan A. Sternberg
2bb5b68833
Add an auto choice that will choose the most appropriate logger
...
This restricts the logging format options so console cannot be chosen.
This way, logs written to a non-TTY will never be the console format.
2018-02-14 11:56:29 -05:00
Jonathan A. Sternberg
ccf2e549b8
Add logging configuration to the main configuration file
...
Make logfmt the default log output format with json and a more user
friendly console into possible options.
2018-02-14 10:11:02 -05:00
Jonathan A. Sternberg
332de90f9d
Encode durations as a string so they are more user-friendly
2017-11-14 10:35:10 -06:00
Jonathan A. Sternberg
7757b827c4
Lock the zap write output to avoid race conditions when logging
2017-11-13 09:42:53 -06:00
Jonathan A. Sternberg
0b7c56bcd8
Update the zap logger dependency
...
The previous sha was taken from a revision on a devel branch that I
thought would continue staying in the tree after it was merged. That
revision was rebased away and the API was changed for the logger.
This updates the usage of the logger and adds a simple package for
constructing the base logger.
The 1.0 version of zap changed the format of the default console logger
so this change moves over to this new logger instead of attempting to
retain backwards compatibility with the old format.
2017-11-10 16:27:16 -06:00