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 --

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

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-08-21 Thread R. David Murray
R. David Murray added the comment: My test harness already dumps the logging buffer on test failure. What I need this for is debugging. My test harness verbose = 2 flag turns on logging globally, and I need to see the logging from the code under test correctly interspersed with the other

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-08-20 Thread Robert Collins
Robert Collins added the comment: Ok so, design thoughts here. assertLogs really does two things. Firstly it takes a copy of the logs so it can do its assertion. Secondly it disables all other logging, cleaning up noisy tests. Your specific need only conflicts with the second case. The way

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 solutions I can not decide myself

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 pythontics) think about

Re: Optimal solution for coloring logging output

2015-08-03 Thread Jean-Michel Pichavant
Original Message - From: c buhtz c.bu...@posteo.jp 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 solutions about it. http://stackoverflow.com

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

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24352 ___ ___ Python-bugs-list

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-02 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24352 ___ ___

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-01 Thread R. David Murray
New submission from R. David Murray: In my test framework I have a 'verbose' flag that causes the logging output to be written to the console[*], which helps greatly during debugging. However, if assertLogs is used, the logging is suppressed, and when debugging logging failures it is really

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',

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?

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',

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():

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.ERROR) Python

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:

[ python-Bugs-1616422 ] Wrong pathname value in logging output

2006-12-18 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tekkaman (simleo) Assigned to: Vinay Sajip (vsajip) Summary: Wrong pathname value in logging output

[ python-Bugs-1616422 ] Wrong pathname value in logging output

2006-12-18 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Tekkaman (simleo) Assigned to: Vinay Sajip (vsajip) Summary: Wrong pathname value in logging output

[ python-Bugs-1616422 ] Wrong pathname value in logging output

2006-12-16 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Tekkaman (simleo) Assigned to: Vinay Sajip (vsajip) Summary: Wrong pathname value in logging

[ python-Bugs-1616422 ] Wrong pathname value in logging output

2006-12-15 Thread SourceForge.net
value in logging output Initial Comment: When trying to log caller pathname information, instead of the actual caller's name I get the full name of the logging module source file: import logging logging.basicConfig(format='%(pathname)s') logging.getLogger('').critical('foo') /usr/lib/python2.4

[ python-Bugs-1616422 ] Wrong pathname value in logging output

2006-12-15 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Pending Resolution: Invalid Priority: 5 Private: No Submitted By: Tekkaman (simleo) Assigned to: Vinay Sajip (vsajip) Summary: Wrong pathname value in logging

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 1stdout.txt 2stderr.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 error or

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. Basically, if

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

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

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, I

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