log and figure out what bits are slow and optimize them.

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Feb 10 09:25:10 EST 2012


Please don't top post.

On 10/02/2012 12:59, Saju M wrote:
> Yes i saw profile module,
> I think, i have to do function call via
> cProfile.run('foo()')
> I know, we can debug this way.
> But, I need a fixed logging system and want to use it in production.
>        I think, we can't permanently include profile's debugging code in
> source code,
>       will cause any performance issue ??
>

How about http://docs.python.org/library/logging.html ?

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list