What logs should be displayed by default in the gnome-system-log viewer?

Andrea Corbellini andrea.corbellini at ubuntu.com
Thu Dec 8 17:27:22 UTC 2011


Hi. In the source code of gnome-system-log, just before the function
that parses /etc/syslog.conf, there's a note:

/* TODO: ideally we should parse configuration files in /etc/logrotate.conf
 * and all the files in /etc/logrotate.d/ and group all the logs referring
 * to the same entry under a category. Right now, we just do some
 * parsing instead, and fill with quasi-sensible defaults.
 */

So the long-term plan of GNOME is to parse /etc/logrotate* instead of
syslog.conf.

An another equivalent that could be used is /etc/rsyslog.conf (and
consequently /etc/rsyslog.d/*.conf), however, AFAIK, it uses a different
syntax.

Using a static list should be the fastest and painless solution. I'd say
you should put /var/log/{syslog,dmesg,kern.log,Xorg.0.log,auth.log}
and maybe also /var/log/dpkg.log and /var/log/apt/history.log

On Thu, 2011-12-08 at 17:57 +0100, Sebastien Bacher wrote:
> Hi,
> 
> Currently gnome-system-log is not displaying any log in Ubuntu [1], 
> that's because it tries to parse /etc/syslog.conf to get the list of 
> logs to display, which doesn't work with rsyslog.
> 
> Does anyone have an opinion on what logs should be displayed by default, 
> we could either use a static list in the default config of 
> gnome-system-log or make it parse one of the rsyslog files if there is 
> one which would provides the list we need.
> 
> Cheers,
> Sebastien Bacher
> 
> [1]
> 
> https://bugs.launchpad.net/bugs/841085
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20111208/51ba5fdb/attachment.pgp>


More information about the ubuntu-devel mailing list