I've been attempting to use different log levels in my App Engine Flexible Node deployment, to no avail.
My first attempt was simply using console.info, console.warn, etc.
I then attempted to use Winston as described in these docs.
app.get('/testlog', (req, res) => {
// Writes some log entries
logger.silly('silly');
logger.debug('debug');
logger.info('info');
logger.warn('warn');
logger.error('error');
res.send("Logs written")
})
Locally it would write logs to Stackdriver's "Global" scope, and would contain log levels. However when deployed it would write to "GAE Application", but without any levels.
Is it possible to set levels in Stackdriver while deployed to App Engine?