<p>I deployed a go application in google cloud using kubernetes which automatically logs to google stackdriver. Oddly, all log statements are being tagged with severity "ERROR"</p>

<p>For example:</p>

<pre><code>log.Println("This should have log level info")
</code></pre>

<p>will be tagged as an error.</p>

<p><a href="https://cloud.google.com/kubernetes-engine/docs/how-to/logging" rel="nofollow noreferrer">Their docs say</a> "Severities: By default, logs written to the standard output are on the INFO level and logs written to the standard error are on the ERROR level."</p>

<p>Anyone know what could be wrong with my setup?</p>

Tony
<p>Take a look at this logging package: <a href="https://github.com/teltech/logger" rel="nofollow noreferrer">github.com/teltech/logger</a>, with an accompanying <a href="https://dev.to/hitman666/go-logger-with-kubernetes-stackdriver-format-compatibility-65k" rel="nofollow noreferrer">blog post</a>. It will output your logs in a JSON format, including the severity, that is readable by the Stackdriver Fluentd agent.</p>
