Re: logging output

2018-10-19 Thread Anders Wegge Keller
På Fri, 19 Oct 2018 08:05:28 -0700 (PDT) Sharan Basappa skrev: ... > delimiter=r'\s"') #data_df = pd.read_csv("BGL_MERGED.log") > logger.debug("data frame %s \n", data_df) Do this help? -- //Wegge -- http

logging output

2018-10-19 Thread Sharan Basappa
Here the sample line from logging output 0 - 1117838570 2005.06.03 R02-M1-N0-C:J12-U11 20... The lines seems to be same but logging module seems to be cutting down additional columns towards the end (see "..." characters). Am I missing something? below is the full code listing: import

Re: Optimal solution for coloring logging output

2015-08-03 Thread Mark Lawrence
On 03/08/2015 10:13, c.bu...@posteo.jp wrote: I don't want to ask how to do this because there are so many "solutions" about it. <http://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output> There are so much different and part of unpythontic solut

Re: Optimal solution for coloring logging output

2015-08-03 Thread Karim
On 03/08/2015 14:47, Jean-Michel Pichavant wrote: te a logging Formatter that will re Thank you Jean-Michel useful example K -- https://mail.python.org/mailman/listinfo/python-list

Re: Optimal solution for coloring logging output

2015-08-03 Thread Jean-Michel Pichavant
Original Message - > From: "c buhtz" > To: python-list@python.org > Sent: Monday, 3 August, 2015 11:13:37 AM > Subject: Optimal solution for coloring logging output > > I don't want to ask how to do this because there are so many > "solutio

Optimal solution for coloring logging output

2015-08-03 Thread c.buhtz
I don't want to ask how to do this because there are so many "solutions" about it. <http://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output> There are so much different and part of unpythontic solutions I can not decide myself. What do you (as real py

Re: Missing logging output in Python

2013-03-12 Thread W. Matthew Wilson
I made that code into a program like this: ### BEGIN import logging def configure_logging(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)8s %(message)s', datefmt='%Y-%m-%d\t%H:%M:%s', filename='/tmp/log

Missing logging output in Python

2013-03-08 Thread gabor . a . halasz
Hi, I would like to enable loggin in my script using the logging module that comes with Python 2.7.3. I have the following few lines setting up logging in my script, but for whatever reason I don't seem to get any output to stdout or to a file provided to the basicConfig method. Any ideas?

Re: Logging output to be redirected to a particular folder

2012-11-06 Thread anuradha . raghupathy2010
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 <__pete...@web.de> > > > declaimed the following in gmane.comp.python.general: > > > > > >

RE: Logging output to be redirected to a particular folder

2012-11-06 Thread Prasad, Ramit
Dennis Lee Bieber wrote: > > On Tue, 06 Nov 2012 13:26:11 +0100, Peter Otten <__pete...@web.de> > declaimed the following in gmane.comp.python.general: > > > anuradha.raghupathy2...@gmail.com wrote: [snip] > > > def main(): > > >logging.basicConfig(Filename='c://myapp.log', level=logging.ERRO

Re: Logging output to be redirected to a particular folder

2012-11-06 Thread Peter Otten
anuradha.raghupathy2...@gmail.com wrote: > Hi, > > Below is the python code that I have. I want to redirect the output to my > C drive..myapp.log. > > I am editing and creating scripts in IDLE and running it as a python shell > or module. > > Can you help? > > import logging > > def main(): >

Logging output to be redirected to a particular folder

2012-11-06 Thread anuradha . raghupathy2010
Hi, Below is the python code that I have. I want to redirect the output to my C drive..myapp.log. I am editing and creating scripts in IDLE and running it as a python shell or module. Can you help? import logging def main(): logging.basicConfig(Filename='c://myapp.log', level=logging.ERR

Re: Logging output from python

2006-12-09 Thread Leonhard Vogt
Cameron Walsh schrieb: > > If it's on linux you can just redirect the screen output to a file: > > python initialfile.py 1>stdout.txt 2>stderr.txt > As for windows, I'll test it now... > > It turns out you can at least redirect the output to a file, I'm not > sure what it does with standard er

Re: Logging output from python

2006-12-08 Thread MRAB
Gabriel Genellina wrote: > At Thursday 7/12/2006 23:21, Cameron Walsh wrote: > > > > Here is my problem. I want to log everything displayed in the screen > > > after I start the main python script. Things include unhandled > > > exceptions , message from print statement and other sources. > > > Ba

Re: Logging output from python

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 23:21, Cameron Walsh wrote: > Here is my problem. I want to log everything displayed in the screen > after I start the main python script. Things include unhandled > exceptions , message from print statement and other sources. > Basically, if it is displayed on the screen,

Re: Logging output from python

2006-12-07 Thread Cameron Walsh
Barry wrote: > Hi, guys > > Basiclly, it is automated testing system. There is a main python script > that handles the testing campagin. This main script will call another > script that will in turn runs a few hundered individual python scripts. > > > Here is my problem. I want to log everything

Logging output from python

2006-12-07 Thread Barry
Hi, guys Basiclly, it is automated testing system. There is a main python script that handles the testing campagin. This main script will call another script that will in turn runs a few hundered individual python scripts. Here is my problem. I want to log everything displayed in the screen afte

Console logging/output for DocXMLRPCServer

2005-07-13 Thread sameer_deshpande
Hello, I have written simple code using DocXMLRPCServer. How do I log method name on the console after invoking registered method on server. On the console it just prints message as [hostname - date/time and "POST /RPC2 HTTP/1.0" 200 -] code is: from DocXMLRPCServer import DocXMLRPCServer def T