PHLAK
5 months ago

Logging Raw Data

Posted 5 months ago by PHLAK

I have an application running in GCP and want to be able to take advantage of StackDriver. In order to do some things I need to log a raw string of JSON. However all logs are prefixed with the date and time and the log level. How can I accomplish this?

This is what I want:

{"foo":"foo","bar":"bar"} 

This is what I get:

[2019-04-25 16:07:36] local.INFO: {"foo":"foo","bar":"bar"} 

Please sign in or create an account to participate in this conversation.