Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pyrmid logging
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cropr  
View profile  
 More options Jan 3, 11:48 am
From: cropr <ruben.dec...@gmail.com>
Date: Thu, 3 Jan 2013 08:48:19 -0800 (PST)
Local: Thurs, Jan 3 2013 11:48 am
Subject: pyrmid logging

Does anyone know if is is possible to make pyramid putting its log messages
no longer in the 'application' logger, but in a different one, preferable
in a 'pyramid' logger, or in the root logger.   When I set the loglevel in
my application to DEBUG my logfile is full with superfluous pyramid
messages.   In Pylons this was a piece of cake


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wyatt Baldwin  
View profile  
 More options Jan 3, 12:57 pm
From: Wyatt Baldwin <wyatt.lee.bald...@gmail.com>
Date: Thu, 3 Jan 2013 09:57:44 -0800 (PST)
Local: Thurs, Jan 3 2013 12:57 pm
Subject: Re: pyrmid logging

On Thursday, January 3, 2013 8:48:19 AM UTC-8, cropr wrote:

> Does anyone know if is is possible to make pyramid putting its log
> messages no longer in the 'application' logger, but in a different one,
> preferable in a 'pyramid' logger, or in the root logger.   When I set the
> loglevel in my application to DEBUG my logfile is full with superfluous
> pyramid messages.   In Pylons this was a piece of cake

Wouldn't the configuration be the same as in Pylons?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cropr  
View profile  
 More options Jan 3, 3:15 pm
From: cropr <ruben.dec...@gmail.com>
Date: Thu, 3 Jan 2013 12:15:04 -0800 (PST)
Local: Thurs, Jan 3 2013 3:15 pm
Subject: Re: pyrmid logging

> 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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wyatt Baldwin  
View profile  
 More options Jan 3, 11:48 pm
From: Wyatt Baldwin <wyatt.lee.bald...@gmail.com>
Date: Thu, 3 Jan 2013 20:48:44 -0800 (PST)
Local: Thurs, Jan 3 2013 11:48 pm
Subject: Re: pyrmid logging

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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile  
 More options Jan 4, 3:39 am
From: Mike Orr <sluggos...@gmail.com>
Date: Fri, 4 Jan 2013 00:39:33 -0800
Local: Fri, Jan 4 2013 3:39 am
Subject: Re: pyrmid logging
On Thu, Jan 3, 2013 at 8:48 PM, Wyatt Baldwin

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »