In addition to the rules, Clog supports these command line options which also affect the output.
When specified, the
--file option is an override for the default
You can use this option to select from several different rule files.
--date option is specified, the current date in the form
YYYY-MM-DD is written before every line.
Using this rule set:
Then applying it to this sample input (which contains no matches):
This is the result:
Similarly, when the
--time option is used, the current time, in the form
HH:MM:SS is written before every line.
Here is an example:
Note that both
--time can be specified, yielding a complete timestamp: