Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32875
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <anuradha.raghupathy2010@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'completeness': 0.07; 'try:': 0.07; 'python': 0.09; 'literal': 0.09; 'os.path': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'def': 0.10; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'escapes': 0.16; 'least,': 0.16; 'main():': 0.16; 'securities,': 0.16; 'slashes': 0.16; 'subject:Logging': 0.16; 'subject:folder': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'windows': 0.19; 'import': 0.21; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'raw': 0.27; 'accuracy': 0.27; 'fine': 0.28; '+0100,': 0.29; 'print': 0.32; 'skip:l 40': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'needed': 0.35; 'nov': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'several': 0.39; 'from:no real name:2**0': 0.60; 'email addr:gmail.com': 0.63; 'information,': 0.63; 'url:email': 0.63; 'legal': 0.65; 'subject': 0.66; 'forward': 0.66; 'purchase': 0.67; 'sale': 0.76; '11:28:46': 0.84; 'otten': 0.84; 'dennis': 0.91; 'doubling': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Tue, 6 Nov 2012 22:39:05 -0800 (PST) |
| In-Reply-To | <mailman.3335.1352224715.27098.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=59.144.10.250; posting-account=qyY2bQoAAAB2bpvKSd55uLND4g16sXKM |
| References | <bdec816f-bde8-427a-b604-30e12a773595@googlegroups.com> <k7avku$ecv$1@ger.gmane.org> <ueii98t9ivukh3v2ojc89795g94j9n68oh@invalid.netcom.com> <mailman.3335.1352224715.27098.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 59.144.10.250 |
| MIME-Version | 1.0 |
| Subject | Re: Logging output to be redirected to a particular folder |
| From | anuradha.raghupathy2010@gmail.com |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.3357.1352270983.27098.python-list@python.org> (permalink) |
| Lines | 95 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1352270983 news.xs4all.nl 6892 [2001:888:2000:d::a6]:52882 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32875 |
Show key headers only | View raw
Thanks ...this works perfectly fine now.
On Tuesday, November 6, 2012 11:28:46 PM UTC+5:30, Prasad, Ramit wrote:
> Dennis Lee Bieber wrote:
>
> >
>
> > On Tue, 06 Nov 2012 13:26:11 +0100, Peter Otten <__peter__@web.de>
>
> > declaimed the following in gmane.comp.python.general:
>
> >
>
> > > anuradha.raghupathy2010@gmail.com wrote:
>
> [snip]
>
> > > > def main():
>
> > > > logging.basicConfig(Filename='c://myapp.log', level=logging.ERROR)
>
> > >
>
> > > Python is case-sensitive. Try:
>
> > >
>
> > > logging.basicConfig(filename='c://myapp.log', level=logging.ERROR)
>
> > >
>
> > The double forward slashes might also be confusing... At the least,
>
> > unneeded...
>
> >
>
> > >>> import os.path
>
> > >>> print os.path.normpath("c://somefile.log")
>
> > c:\somefile.log
>
> > >>> print os.path.normpath("c:\\somefile.log")
>
> > c:\somefile.log
>
> > >>> print os.path.normpath("c:\\tryfile.log")
>
> > c:\tryfile.log
>
> > >>> print os.path.normpath("c:\tryfile.log")
>
> > c: ryfile.log
>
> > >>> print os.path.normpath("c:/tryfile.log")
>
> > c:\tryfile.log
>
> > >>>
>
> >
>
> > Doubling back-slashes is needed to avoid the problem of literal
>
> > escapes corrupting the intent...
>
>
>
> Or use the raw literal form r"c:\tryfile.log". I know several
>
> people that prefer to use forward slashes as it works in both
>
> Windows and *nix.
>
>
>
>
>
> ~Ramit
>
>
>
>
>
> This email is confidential and subject to important disclaimers and
>
> conditions including on offers for the purchase or sale of
>
> securities, accuracy and completeness of information, viruses,
>
> confidentiality, legal privilege, and legal entity disclaimers,
>
> available at http://www.jpmorgan.com/pages/disclosures/email.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Logging output to be redirected to a particular folder anuradha.raghupathy2010@gmail.com - 2012-11-06 03:28 -0800
Re: Logging output to be redirected to a particular folder Peter Otten <__peter__@web.de> - 2012-11-06 13:26 +0100
Re: Logging output to be redirected to a particular folder Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-06 12:38 -0500
RE: Logging output to be redirected to a particular folder "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-06 17:58 +0000
Re: Logging output to be redirected to a particular folder anuradha.raghupathy2010@gmail.com - 2012-11-06 22:39 -0800
Re: Logging output to be redirected to a particular folder anuradha.raghupathy2010@gmail.com - 2012-11-06 22:39 -0800
csiph-web