I am using nodejs on App Engine and I would like to have the ability to log my application in an easy manner. Possibily, I would like to be able to log as easy as in python standard environment <https://cloud.google.com/appengine/docs/standard/python/logs/>:
import logging > import webapp2 > class MainPage(webapp2.RequestHandler): > def get(self): > logging.debug('This is a debug message') > logging.info('This is an info message') > logging.warning('This is a warning message') > logging.error('This is an error message') > logging.critical('This is a critical message') > try: > raise ValueError('This is a sample value error.') > except ValueError: > logging.exception('A example exception log.') > self.response.out.write('Logging example.') app = webapp2.WSGIApplication([ ('/', MainPage) > ], debug=True) This is very useful since it shows the logs with the corresponding logging severity in the Stackdriver Logging console. Unfortunately, it doesn't look that something like this is possible on NodeJS. I have tried to follow what the documentation says <https://cloud.google.com/appengine/docs/flexible/nodejs/writing-application-logs> on logging on NodeJS, which says that I can use winston-gae <https://www.npmjs.com/package/winston-gae>, but it doesn't work at all. Any help is very appreciated. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/537db47a-55a8-4be2-88ca-18a64225f6ee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.