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
Now that sounds like a winner.
--
----- -- - -------- --------- ---- ------- ----- - - --- --------
Ben Collins <b.m.collins@larc.nasa.gov> Debian GNU/Linux
UnixGroup Admin - Jordan Systems Inc. bcollins@debian.org
------ -- ----- - - ------- ------- -- The Choice of the GNU Generation
Reply to: