The pseudofile() destination driver is a very simple driver, aimed at delivering messages to special files. It opens and closes the file after each write operation, instead of keeping it open.

Status

Architecture Status
x86 Works
ARM Works

Testing

The pseudofile() driver has a single required argument, specifying a filename, that is, the file to write messages to, including the path.

Note: The pseudofile() driver does not support templates in the filename.

Configuration file used

@version: 3.33
@include "scl.conf"

source custom
{
    example-msg-generator(
        num(20)
        freq(5)
        template("Message to Terminal using Pseudofile")
    );
};

destination d_pseudofile {
    pseudofile("/dev/stdout" template("${ISODATE} ${HOST} ${MESSAGE}\n"));
};


log {
    source(custom);
    destination(d_pseudofile);
};

Proof

pseudofile() driver tested on macOS (x86)

pseudofile() driver tested on macOS (ARM)

Updated: