I have a VM micro instance running on google compute cloud and I want to log an error message to stackdriver. This page https://cloud.google.com/logging/docs/agent/installation shows this example
logger "Some test message"
which works great for normal messages, but I want stackdriver to recognize some messages as errors, so that they would show up here https://console.cloud.google.com/errors, which would allow me to get email notifications.
I'm aware that the gcloud
tool has a beta logging solution, but I'm hoping to avoid installing the extra components it requires.