···11// Copyright 2020-2025, Collabora, Ltd.
22+// Copyright 2025, NVIDIA CORPORATION.
23// SPDX-License-Identifier: BSL-1.0
34/*!
45 * @file
···279280 */
280281enum u_logging_level
281282u_log_get_global_level(void);
283283+284284+/*!
285285+ * Sets the output file for the logging instead of stderr, this function is
286286+ * externally synchronized with ALL other logging functions. Which means do not
287287+ * call any other logging function from different threads during a call to this
288288+ * function. Also to avoid leaks call this function with NULL to close the
289289+ * internally managed FILE object.
290290+ *
291291+ * WANRING THIS FUNCTION IS EXTERNALLY SYNCHRONIZED WITH ALL OTHER FUNCTIONS.
292292+ */
293293+void
294294+u_log_set_output_file(const char *filename);
282295283296/*!
284297 * @brief Main non-device-related log implementation function: do not call directly, use a macro that wraps it.