I'm not entirely sure why, possibly a bug in some version(s) of GLib,
the file type returned by the `get_file_type` method of a `FileInfo`
object yielded by a `FileEnumerator` is always `UNKNOWN`. Querying the
file type directly using `File.query_file_type` works much more
reliably.
When stdout/stderr is redirected to a file, they are typically opened in
fully-buffered mode. This makes it difficult to watch logs in real time,
unless the buffer is flushed every time a new message is written.