Closed bottom-up-ai closed 1 year ago
Thanks @bottom-up-ai for opening this issue. I created PR to address this problem - please let me know if thats what you were looking for
Thank you for your response.
It seems to be fixed, I pulled the latest version "5.2.1" and it works without any bug.
The only problem now, is that I'm not seeing the "http" log inside Google cloud platform logging.
I tried replacing the "http" log request with an "info" log, the "log" request shows up in the console, but not the "http".
@bottom-up-ai, does it means that record logged with http
is dropped completely or logged with different severity?
Based on our code we have to translate npm
levels into LogSeverity. Looking into documentation, we do not have HTTP
in LogSeverity
and hence we translate it to one of existing severities.
It is dropped completely.
I tried it again, with winston
logging the http
request configured with morgan
, and it's not showing in Google cloud logging.
When I set the severity back to info
, it is shown in Google cloud logging.
Thanks @bottom-up-ai for reply! Would you be able to share a snippet of code you using to repro a problem?
I'm closing this due to inactivity, since it seems like the main issue was fixed.
Feel free to re-open if you're still having issues
Environment details
@google-cloud/logging-winston
version: ^5.1.7Steps to reproduce
Produce the following error :
This is the only log level where there is an error !
Thanks guys!