Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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; 'kelly': 0.09; 'pm,': 0.10; 'output': 0.11; '>>>': 0.12; 'wrote:': 0.14; 'subject:python': 0.14; 'bye': 0.16; 'logging,': 0.16; 'per- module': 0.16; 'subject:logging': 0.16; 'somewhere': 0.17; 'tue,': 0.17; 'before.': 0.19; 'once,': 0.19; 'header:In-Reply-To:1': 0.21; 'figure': 0.21; 'works.': 0.23; 'thus': 0.23; 'modules': 0.26; "i'm": 0.27; 'seeing': 0.28; 'thanks': 0.28; 'import': 0.29; 'all,': 0.30; "won't": 0.30; 'done': 0.32; 'app': 0.32; 'configured': 0.32; 'file.': 0.32; 'to:addr:python-list': 0.33; 'from:charset:iso-8859-1': 0.33; 'file': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; '17,': 0.35; 'begins': 0.35; 'message-id:@gmail.com': 0.36; 'log': 0.36; 'received:google.com': 0.37; 'logging': 0.37; 'received:74.125.82': 0.38; 'received:74.125': 0.38; 'anything': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'to:addr:python.org': 0.39; 'received:192.168.1': 0.40; 'addition': 0.60; 'link': 0.64; 'saw': 0.64; 'show': 0.66; 'so:': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=S86I2qkgMcxQxp1hsiR33189sDImjmMWCoOTkwEQnNk=; b=H5WzC1fIac8vMaPW9US4EQL9iveIHaKw+mA4BwHuViBqJwJIFBvx5co00cDpkk0K/M /tQjlqR1/o7fYV+mZWROuzNQGxzL2MGsWjBKlLm2eIeVUolg2np20P5h2UxxB0vn1r8j uTgPCEeqYGeAV6TkXDhwjTw4O7b1HTs5Q2d1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=P8ApdBCx3M+3bM//osRw2PcOD4rD+2D7ss8hJeYcFoK/zW/8CV851/9i3Xsa6t88HC 4L7UnKloiUHy6wSgFuQH2fUeOJ9SiBRVOfVs0bGJHVihoBR78l4D/unSQJlbkDSQ0nAk rOPOcP41Y5/rKn1FnvNB4dL+qB326s3Z0am8I= Date: Wed, 18 May 2011 21:42:33 +0200 From: =?ISO-8859-1?Q?Rafael_Dur=E1n_Casta=F1eda?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: python-list@python.org Subject: Re: python logging References: <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> <4e923309-d4a5-4fc2-9fdf-b4350e11eab8@z37g2000vbl.googlegroups.com> In-Reply-To: <4e923309-d4a5-4fc2-9fdf-b4350e11eab8@z37g2000vbl.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 33 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305747758 news.xs4all.nl 49179 [::ffff:82.94.164.166]:34111 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5731 On 18/05/11 03:09, Fei wrote: > On May 17, 6:55 pm, Ian Kelly wrote: >> 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. I'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. > Thanks Ian. That's not exactly how it works. You can use logging without any configuration and the default output will be console. In addition default logging level is warning, so: logging.info("Some text") won't show anything and logging.warning("Other text") will show: WARNING:root:Other text Please check the link I gave before. Bye