Re: Multiple log files using logging module

2019-03-24 Thread Luuk
On 24-3-2019 19:33, Peter Otten wrote: Luuk wrote: On 24-3-2019 18:13, Sharan Basappa wrote: I have a test program that imports a design program. Both the programs need to log messages. I have tried the following: 1) Both the programs have the following lines: for handler in logging.root.han

Re: Multiple log files using logging module

2019-03-24 Thread Peter Otten
Luuk wrote: > On 24-3-2019 18:13, Sharan Basappa wrote: >> I have a test program that imports a design program. >> Both the programs need to log messages. >> >> I have tried the following: >> >> 1) Both the programs have the following lines: >> for handler in logging.root.handlers[:]: >> lo

Re: Multiple log files using logging module

2019-03-24 Thread DL Neil
On 25/03/19 6:13 AM, Sharan Basappa wrote: I have a test program that imports a design program. Both the programs need to log messages. ...> I would like to get comment from members here as well as some simple programs to illustrate this ... Have you copied this code from somewhere? Which tu

Re: Multiple log files using logging module

2019-03-24 Thread Luuk
On 24-3-2019 18:13, Sharan Basappa wrote: I have a test program that imports a design program. Both the programs need to log messages. I have tried the following: 1) Both the programs have the following lines: for handler in logging.root.handlers[:]: logging.root.removeHandler(handler)

Multiple log files using logging module

2019-03-24 Thread Sharan Basappa
I have a test program that imports a design program. Both the programs need to log messages. I have tried the following: 1) Both the programs have the following lines: for handler in logging.root.handlers[:]: logging.root.removeHandler(handler) #Create and configure logger filename = os.

Re: log file

2019-03-24 Thread Sharan Basappa
On Sunday, 24 March 2019 14:20:36 UTC+5:30, Sharan Basappa wrote: > On Sunday, 24 March 2019 10:57:13 UTC+5:30, Cameron Simpson wrote: > > On 23Mar2019 21:47, Sharan Basappa wrote: > > >On Friday, 22 March 2019 09:13:18 UTC+5:30, MRAB wrote: > > >> On 2019-03-22 03:25, Sharan Basappa wrote: > >

Re: log file

2019-03-24 Thread Luuk
On 24-3-2019 09:50, Sharan Basappa wrote: Ah. I finally solved the issue though I don't know what the problem itself it. The problem, shown with a simple example Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "cr

scatter plot error - possibly data type

2019-03-24 Thread ciaran . hudson
Hi, Can anyone help me with this error? I suspect it is something to do with the data type, but don't know how to resolve. I'm trying to plot a 2 user system dates against each other and am getting the error below. print(type(DialogUsers.TRDAT)) plt.scatter(DialogUsers.TRDAT, DialogUsers.ERDA

Re: log file

2019-03-24 Thread Sharan Basappa
On Sunday, 24 March 2019 10:57:13 UTC+5:30, Cameron Simpson wrote: > On 23Mar2019 21:47, Sharan Basappa wrote: > >On Friday, 22 March 2019 09:13:18 UTC+5:30, MRAB wrote: > >> On 2019-03-22 03:25, Sharan Basappa wrote: > >> > I am running a program and even though the program runs all fine, the