manigandham/serilog-sinks-googlecloudlogging

Exception is not part of the log

Closed this issue · 6 comments

Hey.
when i log exceptions using serilog syntax i cant find them in the log attributes (in google viewer). do i need to add some label for them to appear?

Thanks Yosi

I don't know. Properties attached to the logs show up so you'll have to debug it and see what's being sent. Exceptions aren't automatically handled by Serilog, you should add a helper like this to copy all the details: https://github.com/RehanSaeed/Serilog.Exceptions

Thanks, that solved it.

Yosi

When I use Serilog Console, I can see the exception title.
but I can't see any exception information in google viewer

@kooboo-binbin Can you create a new issue and explain how youre logging the exception and what page in the GCP console you're viewing?

@manigandham I just check the code I find I did not config errorReportingServiceName

@kooboo-binbin Can you make a new issue please? And explain what exactly you're trying to do. Is it working now that you set the config value?