writer_is_journald


Description:

[ Version ( since = "2.50" ) ]
public bool writer_is_journald (int output_fd)

Check whether the given output_fd file descriptor is a connection to the systemd journal, or something else (like a log file or `stdout` or `stderr`).

Invalid file descriptors are accepted and return `FALSE`, which allows for the following construct without needing any additional error handling: ```c is_journald = g_log_writer_is_journald (fileno (stderr)); ```

Parameters:

output_fd

output file descriptor to check

Returns:

`TRUE` if output_fd points to the journal, `FALSE` otherwise


Namespace: GLib.Log
Package: glib-2.0