introduce CX_log_panic
tests for CX_log_panic