Please make it simple to keep fatal handling with a custom log handler.
Using g_log_set_writer_func
has the side effect of disabling fatal handling. It would be nice if that could stay intact while still being able to set a logging functon to prevent creating snowflakes by emulating this behavior in the custom log handler without having access to g_log_always_fatal
.
One approach would be to have something like g_log_should_fatal (log_level)
that custom log handler can use to determine if a message is fatal based on the private g_log_always_fatal
.
Related !1678 (merged)
Edited by Guido Günther