-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to configure UPTIME_KUMA_LOG_FORMAT
: json
or text
#5107
Comments
Shure, reasonable.
If you want to provide a PR to have json as an alternative log output, our contribution guide is here: https://github.com/louislam/uptime-kuma/blob/dd75890364fe9cbdfbef6119da6c126234fa6044/CONTRIBUTING.md |
UPTIME_KUMA_LOG_FORMAT
: json
or text
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
@CommanderStorm is there something else, that can be done here to support or is there a chance to get #5118 reviewed, merged and release in the next days? π |
Released is a bit of a taller task.
If you want to help, going through the PRs and writing a changelog would be appreciated, but that is a lot of work. |
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
π I have found these related issues/pull requests
π·οΈ Feature Request Type
Settings
π Feature description
It would be very helpful for us to have an ENV_VAR to configure the logging format directly.
To be clear, a general option to switch between the current "text" logs and logs in "json" would already be a great benefit.
βοΈ Solution
Extend
Logger
implementation with a e.g.UPTIME_KUMA_LOG_FORMAT
variable that can be set to "text" or "json" with "text" being the default, similar to the implementation ofUPTIME_KUMA_HIDE_LOG
.Instead of logging to console as
with the value set to "json" the logging could log like this:
β Alternatives
We have considered that this functionality would be possible by a log management solution, but a direct choice and configuration of the logFormat seems to us like a quick and valuable option to avoid further transformations in upstream solutions for the logs produced by kuma.
π Additional Context
n/a
The text was updated successfully, but these errors were encountered: