[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg.log



On Thu, Dec 31, 1998 at 03:37:51PM -0800, Joel Klecker wrote:
> At 17:50 -0500 1998-12-31, Ben Collins wrote:
> >How would having packages send their install messages to
> >/var/log/dpkg.log sound? It's pretty easy for a maintainer to just add
> >'>> /var/log/dpkg.log' to the end of their output lines in postinst
> >This also wouldn't require dpkg to be modified, just a policy change.
> 
> How about using logger instead? This is less error prone than just 
> appending to a file. It could be called thus:
> 
> logger -t "dpkg: postinst for bar" -p local7.info -- log some stuff
> 
> and would produce output such as:
> 
> Dec 31 15:35:49 cerberus dpkg: postinst for bar: log some stuff

dpkg-mountable does logging, but I havn't used it for ages so there are no
logs left on this machine to check.  I believe it used a program called
"script"...

/var/log/dpkg.mountable if anyones interested.

Adrian

email: adrian.bridgett@zetnet.co.uk, http://www.poboxes.com/adrian.bridgett
Windows NT - Unix in beta-testing.   PGP key available on public key servers
Avoid tiresome goat sacrifices  -=-  use Debian Linux http://www.debian.org


Reply to: