Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
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
  2 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
 
latentflip  
View profile  
 More options Oct 6 2009, 4:23 pm
From: latentflip <latentf...@googlemail.com>
Date: Tue, 6 Oct 2009 13:23:30 -0700 (PDT)
Local: Tues, Oct 6 2009 4:23 pm
Subject: Logging
Hi all,

I have been trying to get logging to work with the debug toolbar and
have had no success. I can't find any documentation about it anywhere.

Is it anything more complicated than:

import logging
logging.debug('a message')

In a relevant file (such as settings.py)?


 
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.
Rob Hudson  
View profile  
 More options Oct 6 2009, 4:33 pm
From: Rob Hudson <r...@cogit8.org>
Date: Tue, 6 Oct 2009 13:33:12 -0700
Local: Tues, Oct 6 2009 4:33 pm
Subject: Re: Logging

On Tue, Oct 6, 2009 at 1:23 PM, latentflip <latentf...@googlemail.com> wrote:
> Is it anything more complicated than:

> import logging
> logging.debug('a message')

No, that's all you need.

> In a relevant file (such as settings.py)?

I think this is the problem... it should be somewhere along the
request/response cycle.  For example, in your views.py.  Otherwise
it's outside where the debug toolbar starts/ends and it therefore
can't see it.
--
-Rob

 
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 »