Options

In addition to the rules, Clog supports these command line options which also affect the output.

The --file Option

When specified, the --file option is an override for the default ~/.clogrc file. You can use this option to select from several different rule files.

The --date Option

When the --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:

The --time Option

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 --date and --time can be specified, yielding a complete timestamp: