Shut down the global telemetry logger gracefully. Signals the background thread to exit after processing any pending log entries in the channel. No-op if the logger hasn't been initialized.
()
| 224 | /// pending log entries in the channel. No-op if the logger hasn't |
| 225 | /// been initialized. |
| 226 | pub fn shutdown_logger() { |
| 227 | if let Some(logger) = logger() { |
| 228 | logger.shutdown(); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | /// Open a log file with proper options for append-only writing. |
| 233 | /// |
no test coverage detected