Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76183

logging question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <a.nandagoban@traxens.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.146
X-Spam-Level *
X-Spam-Evidence '*H*': 0.71; '*S*': 0.00; 'append': 0.09; 'subject:question': 0.10; 'posted': 0.15; 'logger': 0.16; 'tcp': 0.16; 'module': 0.19; 'module,': 0.24; 'server.': 0.24; 'file.': 0.24; 'question': 0.24; 'file': 0.32; 'problem': 0.35; 'connection': 0.35; 'there': 0.35; 'url:rec-html40': 0.35; "didn't": 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:it': 0.37; 'application': 0.37; 'url:microsoft': 0.37; 'writes': 0.38; 'url:office': 0.38; 'to:addr:python-list': 0.38; 'url:schemas': 0.38; 'url:omml': 0.39; 'url:2004': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'customized': 0.61; 'information': 0.63; 'developed': 0.63; 'soon': 0.63; 'day.': 0.63; 'received:46': 0.66; 'lose': 0.68; 'regularly.': 0.84
X-Rid a.nandagoban@traxens.com@46.218.201.210
From "Arulnambi Nandagoban" <a.nandagoban@traxens.com>
To <python-list@python.org>
Subject logging question
Date Wed, 13 Aug 2014 12:18:34 +0200
MIME-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_000_0019_01CFB6F0.B4882020"
X-Mailer Microsoft Outlook 14.0
Thread-Index Ac+23kBAyMLnkBBVTLuiH5fiHYNUhw==
Content-Language en-us
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12917.1407925194.18130.python-list@python.org> (permalink)
Lines 113
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1407925194 news.xs4all.nl 2943 [2001:888:2000:d::a6]:40531
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76183

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello,

 

I posted a question about logger module to create a log file every day. I
had a problem recently in logging. 

My pc restarts regularly. Whenever it restarts I lose all the log since it
writes in the file once per day.  Is there a way to log information in a
file as soon as it available.

My application is a tcp server. Before I did it without using logger module,
I developed customized log module for the application.  As soon as there is
a connection I append it in the log file.

By that way I didn't lose any log information.  

 

--

nambi

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

logging question "Arulnambi Nandagoban" <a.nandagoban@traxens.com> - 2014-08-13 12:18 +0200

csiph-web