[Repoze-dev] bfg + logging

2009-10-28 Thread Andreas Reuleaux
I am wondering if there a any examples of using logging in bfg out there ? I have about the simplest bfg web app possible (can certainly give more details if necessary) and have so far done some debugging by print, i. e. * I call print 'blah' in views.py, models.py once in a while * I can see th

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
A "hidden feature" of PasteDeploy (the package which defines the .ini format for a BFG .ini file) is that you can just inject something in the .ini format found at e.g. http://www.red-dove.com/python_logging.html#config into the BFG app .ini file (literally just paste it in to the BFG app .ini f

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Andreas Reuleaux
Yes that got me running, I know have in my website.ini [loggers] keys=root [handlers] keys=hand [formatters] keys=form [logger_root] level=DEBUG handlers=hand [handler_hand] class=StreamHandler level=NOTSET formatter=form args=(sys.stdout,) stream=sys.stdout [

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
Andreas Reuleaux wrote: > > Maybe it would be good to have this in the bfg docs ? > - I mean: just a basic example to get something running > and a link to this tutorial - no details of how to make > a more complicated configuration - or is it just me, > that didn't know of this "hidden feature"

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Andreas Reuleaux
Yes, I can have a look (not immediately though). Should I just provide some patches or do you want to give me svn write access (should I sign some contributor agreement)? -Andreas On Wed, Oct 28, 2009 at 01:29:14PM -0400, Chris McDonough wrote: > Andreas Reuleaux wrote: > > > > Maybe it would b

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
Andreas Reuleaux wrote: > Yes, I can have a look (not immediately though). > Should I just provide some patches or do you > want to give me svn write access (should I sign > some contributor agreement)? Either is fine, really. The contributor agreement page at http://repoze.org/contributing.html

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-28 Thread Chris McDonough
georgehu wrote: > Chris McDonough wrote: >> You need something like >> > Regarding to the request.form(), I've tried to find document explaining > the usage but no luck. Can you give it more explaination? > There's probably nothing in the docs about it (the docs are accurate but incomplete cu