I am trying to set up logging for a service in Google Cloud Run. The service writes logs to /var/log/logfile.log, which is one of the options described in the google logging docs. That document says logs written to /var/log will automatically be picked up and shown in google cloud logging, but they are not. Am I missing something?
When I run the service locally with docker I can see that it successfully writes to /var/log, so I assume it is successfully writing them there in cloud run as well.
I am writing the logs in json format, and they are really long, is there a log size limit?