[yast-devel] y2debug in Perl modules
Hi, Is it possible to set a specific entry under [Debug] in /etc/YaST2/log.conf to enable debug messages from perl modules? I am using y2debug in a perl module and it only shows up in y2log if I debug everything with Y2DEBUG=1, and the entry shows up prefixed with [-e]. I tried "-e = true" in log.conf but it doesn't work. Cheers, KEv. -- Kevin James Applied Technology Senior Strategist Novell Global Enablement ------------------------ Novell, Inc. http://www.novell.com -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tue, Jul 15, 2008 at 12:26:16AM +0100, Kevin James wrote:
Is it possible to set a specific entry under [Debug] in /etc/YaST2/log.conf to enable debug messages from perl modules? I am using y2debug in a perl module and it only shows up in y2log if I debug everything with Y2DEBUG=1, and the entry shows up prefixed with [-e].
I tried "-e = true" in log.conf but it doesn't work.
(for the record, copying the answer from IRC) Use "use YaST::YCP qw(:LOGGING);" instead of "use ycp;". ycp.pm does not go thru the library that respects [Debug], but YaST::YCP does. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Kevin James
-
Martin Vidner