file() Destination Driver
The file driver is one of the most important destination drivers in syslog-ng. It allows to output messages to the specified text file, or to a set of files.
Status
Architecture
Status
x86
Works
ARM
Works
How to Test
File() drivers are at the very core of syslog-ng. Chances are you are already using them for displaying output to your console. To test the file destination driver, we will use it to store a custom message in a file and then checking the contents of the file.
File() destination driver is also used to display any output on the console. The code snippet is shown below.
Configuration File Used
Proof
Last updated