[NTLUG:Discuss] dhcpcd logging
MadHat
madhat at unspecific.com
Thu May 30 11:43:43 CDT 2002
On Wed, 2002-05-29 at 22:29, Rick Matthews wrote:
> I'm using dhcpcd (instead of pump) with my Verizon DSL, and I'd like to
> have better logging of what is taking place.
>
> Based on something I read somewhere, I added the following to
> /etc/syslog.conf:
> local0.* /var/log/dhcpcd.log
>
> I am getting information logged to dhcpcd.log, but the only entries logged
> there are a boot up. (I'm also getting font server messages logged there.)
>
> After that I saw the -d option on the dhcpcd man page:
> -d With this flag dhcpcd will syslog(LOG_DEBUG,...) messages for about
> every step it does. It's recommended to use this option since it
> doesn't really produce too much output but will greatly help in resolving a
> problems if any.
>
> I am now starting dhcpcd with the -d option, and it *is* producing the
> level of detail that I'm looking for... but it is logging to the console
> only.
>
> Can someone tell me what I need to do to get it to log those messages to
> either /var/log/messages or /var/log/dhcpcd.log?
I like to set up a line like this
*.* /var/log/all
in my syslog.conf. That way I have one logfile I can see everything
in. Makes it easier to debug anything. I also put that same entry for
the colsole8
*.* /dev/tty8
that way I can hit CTRL-ALT-F8 (from X) or ALT-F8 (from cli) to see what
the last few messages were sent to the syslog.
>
> Thanks!
> Rick Matthews
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
--
MadHat at Unspecific.com
gpg --keyserver wwwkeys.us.pgp.net --recv-keys 9DDC3E98
Key fingerprint = E786 7B30 7534 DCC2 94D5 91DE E922 0B21 9DDC 3E98
More information about the Discuss
mailing list