|
From: | Benja Fallenstein |
Subject: | Re: [Gzz] Debug outputs. |
Date: | Sat, 03 May 2003 12:27:22 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030430 Debian/1.3-5 |
Tuomas Lukka wrote:
On Fri, May 02, 2003 at 12:15:41AM +0300, Matti Katila wrote:Hi, It's pain to try to switch off all debug msgs because no source is told!How about PEGging this to be the official line?
Should.
So I propouse we would use something like: Java: public class Foo { private void pa(String s) { System.out.println("Foo:: "+s); } }This is fine with me
Could we make this p(String s), please?
python: file: libvob.vob.putil.foo.py def pa(s): print 'vob.putil.foo:: ',sAlso fine
I don't like this; I like using 'print' better. Why not print >> dbg, sand make it so that printing to dbg prepends 'vob.putil.foo:: ' and is skipped if debug is set to off?
I guess we could import it from somewhere, so that at the top of the file we only need to say:
dbg = Dbg(__name__) - Benja
[Prev in Thread] | Current Thread | [Next in Thread] |