(&mut self, callback: F)
| 217 | /// To share data with the callback, use `Arc` or `Atomic*` types and `move ||` closures. |
| 218 | #[inline] |
| 219 | pub fn set_log_callback<F: Fn(&Self, &str) + Send + Sync + 'static>(&mut self, callback: F) { |
| 220 | self.verbose_printf_flush(); |
| 221 | self.log_callback = Some(Arc::new(callback)); |
| 222 | } |
| 223 | |
| 224 | /// Callback for flushing output (if you buffer messages, that's the time to flush those buffers) |
| 225 | #[inline] |