LogFile variable

Tom Metro <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Quoting HOWTO-Customize-LogWatch.gz:
> A. Logfile Groups
> -----------------
> 
> There is only one required line in the logfile group config file.  This
> command is called 'LogFile'.
[...]
> B. Service Filter Configuration File
> ------------------------------------
[...]
> There is only one required line.  This is the command 'LogFile'.  The
> LogFile command allows you to specify one or more *LogFile Groups* (as
> described above) that this filter will process.
[...]
> For a service filter that needs messages from /var/log/messages you
> would add this line:
> 
> LogFile = messages
> 
> NOTE:  This is *not* because the name of the logfile is 'messages',
> but it is because the name of the LogFile Group that has been defined
> is 'messages'.

I notice the LogFile variable name is used in both logfile group config 
files and service filter config files, and means different things in 
each. The note above seems to acknowledge the confusion this might 
introduce.

I'm sure this came about for historical reasons, but wouldn't it make 
sense to add a more accurately name alias for the latter case, such as 
LogFileGroup?

  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.