Sven Rebhan
32a5b44d7b
chore(logging): Refactor code ( #15556 )
2024-06-25 07:48:56 -06:00
Mingyang Zheng
c22dd1fac5
fix(logging): Add back constants for backward compatibility ( #15514 )
2024-06-17 10:20:02 +02:00
Dane Strandboge
612b5ad8b1
chore: Fix errcheck CI warnings outside of plugins directory ( #15390 )
2024-06-04 10:33:37 +02:00
Sven Rebhan
71b58ddaf5
chore(log): Restructure and cleanup logging code ( #15234 )
2024-05-10 16:43:43 -05:00
Paweł Żak
3786cf2d72
chore(linters): Enable equalFold, preferStringWriter, and stringXbytes checkers for gocritic. ( #14452 )
2023-12-15 06:25:10 -07:00
Paweł Żak
34ae468a8c
chore(linters): Fix findings found by testifylint: len ( #14203 )
2023-10-31 10:29:53 +01:00
Joshua Powers
f39a21121d
chore: Enable additional gocritic options ( #13711 )
2023-08-03 17:07:48 +02:00
Paweł Żak
a2f65d5728
chore: Fix linter findings for Windows (part4) ( #13246 )
...
Co-authored-by: Pawel Zak <Pawel Zak>
Co-authored-by: pzak <pzak>
2023-06-09 10:24:43 +02:00
Paweł Żak
4d4bed4ec4
chore: Fix linter findings for Windows (part2) ( #13096 )
...
Co-authored-by: pzak <pzak>
2023-04-25 11:29:23 +02:00
Paweł Żak
89fa07fc5e
chore: Enable G301, G302 and G306 rules for gosec ( #13022 )
2023-04-04 08:51:08 -06:00
Paweł Żak
236af553a3
chore: wrap long lines in other locations ( #12219 )
2022-11-11 06:32:11 -07:00
Paweł Żak
5878278fca
chore: resolve linter issues for unhandled-error ( #11969 )
2022-10-12 14:23:53 -06:00
Sebastian Spaink
4913392b85
chore: Remove deprecated build tags ( #11867 )
2022-09-22 13:25:31 -05:00
Eng Zer Jun
c3d176029d
test: use `T.TempDir` to create temporary test directory ( #10988 )
2022-04-18 13:27:59 -06:00
Paweł Żak
77390b6495
fix: linter fixes for "import-shadowing: The name '...' shadows an import name" ( #10689 )
2022-02-22 08:11:30 -07:00
Allan Mertner
94348dfdd9
refactor: use early return pattern ( #10591 )
2022-02-07 09:14:35 -07:00
Eng Zer Jun
6a3b27126a
refactor: move from io/ioutil to io and os package ( #9811 )
2021-09-28 15:16:32 -06:00
Sebastian Spaink
3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions ( #9642 )
2021-08-23 15:37:44 -05:00
David Bennett
1a86fd1a2d
Config Option to Enable Logging with Local Time ( #9123 )
...
* Configurable local time logging
* make timezone configurable
* Address linter feedback.
* update with example
2021-04-16 14:39:19 -04:00
Sven Rebhan
9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} ( #8969 )
2021-04-09 13:15:04 -04:00
Paweł Żak
099ccda3f9
Linter fixes - gosimple ( #9046 )
2021-03-25 13:57:01 -04:00
Helen Weller
d41569caed
Integration test audit ( #8725 )
2021-01-26 11:06:12 -07:00
David Bennett
1bf5a19582
Add Event Log support for Windows ( #8616 )
...
* Add event log support for windows when not running as a windows service.
* Add error message for initializing event logger.
* Add build windows flag.
* Only register event logger when running telegraf under windows.
* Update logger/event_logger.go
Co-authored-by: Steven Soroka <ssoroka@influxdata.com>
* Remove unnecessary 'fmt' import
* Remove unnecessary 'fmt' import
* Remove unnecessary error check
* use constants for eid levels.
Co-authored-by: Steven Soroka <ssoroka@influxdata.com>
2021-01-19 11:03:19 -05:00
Daniel Nelson
8cba5941be
Skip logging when logfile is unset ( #6648 )
2019-11-11 17:03:03 -08:00
Vlasta Hajek
7ec54d4be9
Improve startup error reporting when ran as Windows service ( #4291 )
2019-08-28 14:34:44 -07:00
javicrespo
bcf7516a23
Add in process log rotation ( #5778 )
2019-05-03 10:25:28 -07:00
scier
7787ea2dcc
Create log file in append mode ( #5497 )
2019-02-27 16:33:38 -08:00
Daniel Nelson
2c98e5ae66
Add collectd parser ( #2654 )
2017-04-12 10:41:26 -07:00
Cameron Sparr
47de43abf3
Use rfc3339 timestamps in telegraf log output
...
closes #1564
also add unit and benchmark tests
2016-11-03 18:39:02 +00:00
Cameron Sparr
b00ad65b08
Log config file parsing errors properly
...
closes #1344
2016-10-12 16:50:22 +01:00
Cameron Sparr
c7834209d2
Major Logging Overhaul
...
in this commit:
- centralize logging output handler.
- set global Info/Debug/Error log levels based on config file or flags.
- remove per-plugin debug arg handling.
- add a I!, D!, or E! to every log message.
- add configuration option to specify where to send logs.
closes #1786
2016-10-03 17:13:03 +01:00