Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!news.muarf.org!news.ecp.fr!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'base.': 0.05; 'soap': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'language.': 0.14; 'windows': 0.15; 'log.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:log': 0.16; 'subject:windows': 0.16; 'tcp': 0.16; 'exception': 0.16; 'language': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User- Agent:1': 0.23; 'specify': 0.24; 'somewhere': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'layer': 0.31; 'critical': 0.32; 'run': 0.32; 'call.': 0.33; 'moment': 0.34; 'there': 0.35; 'method': 0.36; 'should': 0.36; 'application': 0.37; 'project': 0.37; 'server': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'our': 0.64; 'charset:windows-1252': 0.65; 'viewed': 0.74 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: windows log to event viewer Date: Fri, 17 Oct 2014 19:56:02 +0100 References: <001501cfe9f1$16ff6460$44fe2d20$@traxens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-211-10.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <001501cfe9f1$16ff6460$44fe2d20$@traxens.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413572406 news.xs4all.nl 2945 [2001:888:2000:d::a6]:58590 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79251 On 17/10/2014 10:59, Arulnambi Nandagoban wrote: > Hello, > > I am trying to run a tcp server as a windows service. > > The project also includes an application layer protocol somewhat like > CoAP and few soap calls to data base. > > There is some moment the code enter into exception during a soap method > call. This exception is not viewed in > > Windows event viewer. Should I specify somewhere to log these exception > in windows event viewer. Or, give me some suggestion how to log some > > Critical message in windows log. > > -- > > nambi > http://stackoverflow.com/questions/113007/writing-to-the-windows-logs-in-python -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence