polars_core::error

Function set_warning_function

pub unsafe fn set_warning_function(function: fn(_: &str, _: PolarsWarning))
Expand description

Set the function that will be called by the polars_warn! macro. You can use this to set logging in polars.

ยงSafety

The caller must ensure there is no other thread accessing this function or calling polars_warn!.