Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'effect.': 0.09; 'pm,': 0.11; 'somewhere': 0.11; 'wrote:': 0.14; 'subject:python': 0.15; 'logging,': 0.16; 'per-module': 0.16; 'subject:logging': 0.16; 'figure': 0.18; 'once,': 0.19; 'modules': 0.20; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'seeing': 0.21; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'thus': 0.24; 'received:209.85.161.46': 0.26; 'received:mail- fx0-f46.google.com': 0.26; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.161': 0.29; 'cc:addr:python.org': 0.31; '17,': 0.31; 'all,': 0.31; 'import': 0.32; 'done': 0.32; 'configured': 0.33; 'file.': 0.34; 'there': 0.35; 'file': 0.35; 'begins': 0.35; 'received:209.85': 0.37; 'logging': 0.38; 'received:google.com': 0.38; 'log': 0.38; 'app': 0.39; 'where': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '2011': 0.62; "\xa0i'm": 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=Cs4LCC2JDAy5pJ+GJixfLtVkTUaPBB2z71WpV8inI60=; b=jb0LsVDv63SVzIZ+CoFkeRHIsS2NVf5Y12yz84WNl+lcTfUgmqWsQKQ7orSbTnPEVK wZ8LEfn/1Md1Pk8Jl3nTt/SHRZkVoJEnzHmRWC8M1MOpi3qLsr00ByvA1m5JcvaPjPba epMGJjOwcyAjFQKf8EFLjfw3W4QBDFWyDtRWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=On/y/++wYhniqrcdVLxFkHuKAC2wj1xtryz4CY5yGCHGF5N4yPA3K0brmzoCfAtMw2 pSXyDZm2Gy536PUxunh9NGUz3DRLlunQ0/f6c+c1ouiXsyzwmJz1Kjo4/I3DYPc71brZ eshh0y8poCYNdXq/UIquEiii1BsK+VPEfHrlk= MIME-Version: 1.0 In-Reply-To: <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> References: <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> From: Ian Kelly Date: Tue, 17 May 2011 16:55:55 -0600 Subject: Re: python logging To: Fei Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305672986 news.xs4all.nl 49045 [::ffff:82.94.164.166]:34478 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5628 On Tue, May 17, 2011 at 2:55 PM, Fei wrote: > where is default logging file on Mac? I saw lots of app just import > logging, and begins to logging.info(...) etc. =A0I'm not sure where to > look at the logging configuration to figure out the log location. There is no default log file. You're seeing that because logging only needs to be configured by the program once, not on a per-module basis. Thus most modules will just do import logging on the assumption that the configuration has already been performed somewhere else. If no logging configuration is done at all, then the logging statements will have no effect.