Commit Graph

40 Commits

Author SHA1 Message Date
Michael Kriese e438887dfb build: lazy load and initialize logger (#41425)
* build: lazy load initialization modules

* build: lazy load and initialize logger

* chore: lint fix

* Update lib/constants/error-messages.ts

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>

* Apply suggestion

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>

---------

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2026-03-10 16:57:29 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Michael Kriese 5c796e1a47 refactor: replace nanoid with crypto.randomUUID (#40695)
refactor: replace nanoid with `crypto.randomUUID`
2026-01-26 16:40:12 +00:00
Michael Kriese 0785d0b8bc test: add coverage (part2) (#40643) 2026-01-23 20:57:46 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Borja Domínguez fe257a35da feat: add LOG_FILE_FORMAT (#34820)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-07-14 19:03:26 +00:00
Sergei Zharinov dbe8c6e747 fix(logging): Use right setter for withMeta (#34839) 2025-03-17 07:41:23 +00:00
Michael Kriese bb5377b3d8 test: fix code coverage (#34495) 2025-02-26 12:40:30 +00:00
Sergei Zharinov 3053a9ec4a feat(logger): Add withMeta helper (#33948) 2025-01-30 22:36:39 +00:00
Gabriel-Ladzaretti 3b9464c8fa refactor(logger): improve readability and modularity (#33058)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-17 09:24:57 +00:00
Michael Kriese 42b448b0e5 feat(logger): prefix log env settings with RENOVATE_ (#32499)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-11-13 17:58:19 +00:00
RahulGautamSingh c6c4572ecb feat(logging)!: initialize file logging via env (#28104)
Closes #14705

BREAKING CHANGE: File logging must now be set via env and not in config.js
2024-07-25 15:28:16 +02:00
Sergei Zharinov c30a4b0b54 feat(logger): Log level remapping (#26951)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-16 20:06:11 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Sergei Zharinov 49cdaf2ac2 feat: Support for logging once per repo (#20168) 2023-02-03 07:00:58 +00:00
Michael Kriese 3ab24f92fc ci(jest): use different args for node (#15074) 2022-04-12 13:24:12 +02:00
Hasan Awad 85cf82e79d fix(logging): Added check for log level value (#13941) 2022-02-07 08:44:44 +00:00
Sergei Zharinov e7a969016d refactor(logger): Update logger internals (#12842)
* refactor(logger): Update logger internals

* Check the entire logger directory

* Refactor sanitizeValue function

* Backport changes

* Backport test too
2021-11-27 10:22:58 +01:00
Sergei Zharinov 79da9bc078 refactor(logger): Switch to nanoid (#12861) 2021-11-27 07:38:47 +01:00
renovate[bot] b8e36daa87 chore(deps): update dependency prettier to v2.3.0 (#10012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-05-17 08:06:24 +00:00
Michael Kriese 7daa93a78d refactor: extract types to new files (#9951) 2021-05-11 12:51:21 +02:00
Sergei Zharinov 38620be343 refactor: Replace some TODO items with issue ids (#9596) 2021-04-26 20:19:30 +00:00
renovate[bot] 6c414e7736 chore(deps): update dependency eslint-config-prettier to v7 (#7940)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-11 09:35:56 +01:00
Michael Kriese e4c1e042b8 fix(logger): handle errors (#7554)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-10-26 13:58:28 +01:00
Florian Greinacher 71cf56eaf9 feat(dependency-dashboard): display logged repository problems (#6952)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-21 22:04:11 +02:00
Rhys Arkins bc90949c44 feat(logger): clearErrors 2020-09-18 09:26:38 +02:00
renovate[bot] 907b2b054e chore(deps): update linters (major) (#7185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-07 09:54:07 +02:00
Sergio Zharinov f411dde51a refactor(logger): Fix lint warnings (#7109) 2020-08-27 09:12:37 +02:00
Jamie Magee b45502cd28 chore: fix more eslint warnings (#7001) 2020-08-17 12:32:23 +02:00
Rhys Arkins 53ca91301f chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
renovate[bot] 4f59b62da4 chore(deps): update dependency prettier to v2 (#5952)
* chore(deps): update dependency prettier to v2

* Run prettier-fix

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-12 18:09:36 +02:00
Rhys Arkins d06a8ef811 fix(logs): treat old/new config as config 2020-02-24 13:19:35 +01:00
Rhys Arkins adde436df0 feat(logger): logContext (#5553)
Adds a new concept `logContext`, to be added to each log entry when in JSON format.

Closes #5551
2020-02-23 07:31:13 +01:00
Rhys Arkins 0dab3f4067 refactor: logs meta 2020-01-11 09:16:22 +01:00
Rhys Arkins 8d0aa39920 refactor(eslint): '@typescript-eslint/explicit-function-return-type' improvements 2019-11-24 08:43:24 +01:00
Sergio Zharinov c95ae29179 feat(logger): Integrate logger with sanitizing (#4474) 2019-09-27 11:28:09 +02:00
Michael Kriese f650b851c5 feat(logger): store and print errors on exit (#4257) 2019-08-15 12:43:13 +02:00
Michael Kriese 5cb02acf2b fix/logger): meta should be logged as meta (#4258) 2019-08-07 09:04:45 +03:00
Rhys Arkins 27505b38b3 fix(logger): migrate last refs to ts
Closes #4094, Closes #4095
2019-07-15 15:04:03 +02:00
Jamie Magee f334c568a5 feat(typescript): convert logger to typescript (#3671) 2019-07-15 11:04:05 +02:00