Closed nonefaken closed 3 years ago
Are you running in k8s? It does json by default there.
https://github.com/travisghansen/external-auth-server/blob/master/src/logger.js
Basically it looks for NODE_ENV=production
It helped :) Thank you!
docker logs eas -f
{"service":"external-auth-server","level":"info","message":"revoked JTIs: []"}
{"service":"external-auth-server","level":"info","message":"starting server on port 8080"}
Hello,
is there an easy way to configure EAS output all logging information in JSON format?
By default the logs are not in JSON format and i have to chain it though Fluent-bit instance through regex parser, ie.
Regex ^(?<eas_log_header>[^\{]*) (?<eas_json_log>[^*]*)$
.This is not critical, but not very convenient, especially in kubernetes, then often platform by default only supports logs to stdout in JSON format, else it is like constant "playing with drums".
Thank you!