-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Labels
feature-request
Request for new features to be added
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 |
CommanderStorm
changed the title
Option to configure loggingFormat: json or text
Option to configure Sep 14, 2024
UPTIME_KUMA_LOG_FORMAT
: json
or text
SapphicCode
added a commit
to SapphicCode/fork-uptime-kuma
that referenced
this issue
Sep 19, 2024
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
SapphicCode
added a commit
to SapphicCode/fork-uptime-kuma
that referenced
this issue
Sep 19, 2024
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
SapphicCode
added a commit
to SapphicCode/fork-uptime-kuma
that referenced
this issue
Sep 19, 2024
Includes a slight refactor in the console logging section, to achieve an unformatted output and reduce complexity. Resolves: louislam#5107
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π 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: