loguru icon indicating copy to clipboard operation
loguru copied to clipboard

Option to not catch SIGINT and SIGTERM

Open CelticMinstrel opened this issue 5 years ago • 1 comments

These signals don't necessarily represent an error condition, as they can be sent to request the program to shut down gracefully. Thus, I think it's strange that Loguru treats them as a fatal error. Perhaps it would make sense for some programs though, so I would propose adding an additional compile-time option for it.

CelticMinstrel avatar Mar 25 '20 21:03 CelticMinstrel

This is possible now with

	loguru::Options opts;
	opts.signal_options.sigint = false;
	loguru::init(argc, argv, opts);

So I believe this issue can be closed.

jclc avatar Dec 04 '24 21:12 jclc