[][src]Function glean_ffi::glean_enable_logging_to_fd

#[no_mangle]pub unsafe extern "C" fn glean_enable_logging_to_fd(fd: u64)

Initialize the logging system to send JSON messages to a file descriptor (Unix) or file handle (Windows).

Not available on Android and iOS.

fd is a writable file descriptor (on Unix) or file handle (on Windows).

Safety

Unsafe because the fd u64 passed in will be interpreted as either a file descriptor (Unix) or file handle (Windows) without any checking.