emilk / loguru

A lightweight C++ logging library
The Unlicense
1.77k stars 256 forks source link

replace LOGURU_CATCH_SIGABRT with struct SignalOptions #151

Closed emilk closed 4 years ago

emilk commented 4 years ago

Inspired by https://github.com/emilk/loguru/pull/150

I regret being lazy and making most options compile-time options. This PR converts LOGURU_CATCH_SIGABRT to a runtime options, and adds options to opt-out of catching other signals too.

This is the first C++ code I've written in two years, and I must say... I don't miss it it.