In addition to the rules, Clog supports these command line options which also affect the output.
--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.
--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:
--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
an example:
Note that both --date
and --time
can be specified,
yielding a complete timestamp: