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 -- Joel Klecker (aka Espy) <URL:http://web.espy.org/> <URL:mailto:jk@espy.org> <URL:mailto:espy@debian.org> Debian GNU/Linux PowerPC -- <URL:http://www.debian.org/ports/powerpc/>