get logs from crashpad_handler
on linux
#1010
-
So, we are running a containerized service using sentry-native and crashpad. This works, but it would still, for logging purposes, be useful to verify that crashpad had actually successfully uploaded the report to sentry. Is there a way to extract any logging from crashpad, after run, to include in the container log? Could we instruct it, e.g. via an environment variable, to log to a specific file? I took a cursory look at crashpad, and I couldn't see that anything useful were being logged at all, and in fact, it looked to me that on linux the log handlers were in fact no-ops. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not without changing its logging implementation. The logging configuration is not exposed to the client but rather hard-coded depending on the build configuration (mainly the target OS). So, on Linux, it is set to log to
That is true. Logging on Linux should work, though.
While one can certainly approach this topic from a perspective of syslog-wrapping or starting the application (and processes it starts) as a |
Beta Was this translation helpful? Give feedback.
Not without changing its logging implementation. The logging configuration is not exposed to the client but rather hard-coded depending on the build configuration (mainly the target OS). So, on Linux, it is set to log to
stderr
and the system log (which would be helpful in a container setup), but it seems to be the only supported operating system with no implementation for that option :-)That is true.
crashpad
doesn't log h…