Commit Graph

26 Commits

Author SHA1 Message Date
Sven Rebhan 26fc051441
fix(logging): Handle closing correctly and fix tests (#16539) 2025-02-24 10:05:29 -06:00
Alex Gokhale 304ab2e780
feat(logging): Allow overriding message key for structured logging (#16242) 2024-12-05 10:38:32 -06:00
Sven Rebhan 5793ff6366
fix(logger): Avoid setting the log-format default too early (#16108) 2024-11-01 16:20:42 -05:00
Sven Rebhan c3e53193d2
feat(logging): Implement structured logging (#15751)
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
2024-09-06 15:52:22 -05:00
Sven Rebhan d160276552
feat(logging): Add 'trace' log-level (#15695) 2024-08-01 00:32:24 +02:00
Sven Rebhan f9f029e7e8
feat(plugins): Allow to override log-level per plugin (#15677) 2024-07-30 09:15:19 -06:00
Sven Rebhan ef41198481
chore(logging): Implement early logging (#15629) 2024-07-26 09:09:21 -06:00
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
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 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
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
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
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