On Thu, Jan 3, 2013 at 8:48 PM, Wyatt Baldwin
<wyatt.lee.bald
...@gmail.com> wrote:
> On Thursday, January 3, 2013 12:15:04 PM UTC-8, cropr wrote:
>>> Wouldn't the configuration be the same as in Pylons?
>> In Pylons you had in the logging section of the development.ini file a
>> pylons logger defined, that was used by the code in the pylons framework.
>> AFAIK there is no such support in the pyramid code to write to a pyramid
>> logger.
> Pylons and Pyramid both use stdlib logging. The logging config in your .ini
> files is just standard logging config; it's not Pyramid specific. You should
> be able to copy the logging config from a Pylons project and change "pylons"
> to "pyramid" and/or add the relevant sections for your package.
To be clear, the logging is set up by pserve and pshell. To find the code:
grep -r logging pyramid/pyramid | grep import | grep -v '\.pyc'
In Pylons it was in some obscure place that threw people off because
they couldn't figure out why it worked in the normal "paster serve"
but not in mod_wsgi. I think we finally tracked it down in PasteDeploy
or some place.