UDP socket application crashing

Hey there, I got an application that runs in background an UDP socket server and it crashes sometimes giving me lots of problems with my clients. Is there any way to generate some log and write it to a file in order to findout what happens when the application crashes?


Yes, it’s printed to standard error by default.

1 Like

Printed to where? Jakob, my application runs as a background process. Where is that standard error?

It’s one of the standard output streams. If your process is run by something like systemd it’s probably logged by systemd. If not you can pipe it to logger or a file; yourcommand 2>&1 > somefile.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.