Google StackDrive Logging Level in containers with uwsgi always at Error Level
Kubernetes logs written to stderr
are always tagged as ERROR -- this is hard-coded in the Stackdriver logging agent. Similarly, logs written to stdout
are always tagged with INFO.
If you can configure your application to write non-error log messages to stdout
, please do so. Another possible approach is to write the logs to a file, run the "tail -f
" command on that file as a sidecar container in the same pod, and looking for your logs in Stackdriver Logs Viewer under the sidecar container instead. Finally, you might consider writing your logs directly into the Stackdriver Logging API, which gives you full control over the contents of each entry.