Re: Log File

2023-05-31 Thread Peter J. Holzer
On 2023-05-31 00:22:11 -0700, ahsan iqbal wrote: > Why we need a log file ? A log file contains information about what your program was doing. You use it to check that your program was performing as intended after the fact. This is especially useful for tracking down problems with programs which a

Re: Log File

2023-05-31 Thread Tobiah
On 5/31/23 00:22, ahsan iqbal wrote: Why we need a log file ? If i read a large text file than how log file help me in this regard? If you were parsing each line of this text file looking for information, perhaps some of the lines would not be formatted correctly, and you would be unable to g

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

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

Re: log file

2019-03-23 Thread Cameron Simpson
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 log file is missing. I have pasted first few lines of the code. > Any suggestion

Re: log file

2019-03-23 Thread Sharan Basappa
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 log > > file is missing. I have pasted first few lines of the code. > > > > Any suggestions where I maybe going wrong? >

Re: log file

2019-03-23 Thread Sharan Basappa
On Friday, 22 March 2019 09:09:16 UTC+5:30, adam@gmail.com wrote: > On Thursday, March 21, 2019 at 10:26:14 PM UTC-5, Sharan Basappa wrote: > > I am running a program and even though the program runs all fine, the log > > file is missing. I have pasted first few lines of the code. > > > I am

Re: log file

2019-03-23 Thread Sharan Basappa
On Friday, 22 March 2019 09:09:14 UTC+5:30, DL Neil wrote: > On 22/03/19 4:25 PM, Sharan Basappa wrote: > > I am running a program and even though the program runs all fine, the log > > file is missing. I have pasted first few lines of the code. > > > > Any suggestions where I maybe going wrong?

Re: log file

2019-03-21 Thread MRAB
On 2019-03-22 03:25, Sharan Basappa wrote: I am running a program and even though the program runs all fine, the log file is missing. I have pasted first few lines of the code. Any suggestions where I maybe going wrong? import os import csv import logging import assertion_design as asd import

Re: log file

2019-03-21 Thread adam . preble
On Thursday, March 21, 2019 at 10:26:14 PM UTC-5, Sharan Basappa wrote: > I am running a program and even though the program runs all fine, the log > file is missing. I have pasted first few lines of the code. > I am thinking--hoping, rather--that you just kind of double pasted there. Anyways, y

Re: log file

2019-03-21 Thread DL Neil
On 22/03/19 4:25 PM, Sharan Basappa wrote: I am running a program and even though the program runs all fine, the log file is missing. I have pasted first few lines of the code. Any suggestions where I maybe going wrong? import os import csv import logging import assertion_design as asd import

Re: log file.

2016-06-15 Thread Paul Rudin
Joaquin Alzola writes: > This email is confidential and may be subject to privilege. If you are > not the intended recipient, please do not copy or disclose its content > but contact the sender immediately upon receipt. Probably not a good idea to send it to a publicly accessible resource then :

Re: log file.

2016-06-14 Thread Paul Owen
Thank you Steven. that is just what I need. regards Paul. -- https://mail.python.org/mailman/listinfo/python-list

Re: log file.

2016-06-14 Thread Steven D'Aprano
On Wed, 15 Jun 2016 05:54 am, Paul Owen wrote: > logging please. > > my pump programme works but I want to log the time etc. when the pump runs > and stops. > > I am trying to improve the programme > > I am a novice! As a novice, start with the simplest thing. Whenever the pump runs or stops,

RE: log file.

2016-06-14 Thread Paul Owen
Gmail Google+ Calendar Web more Inbox pump programme Paul Owen to me 1 hour ago Details from gpiozero import LED,Button from signal import pause print ("Pump Programme Running") led = LED(17) low = Button (2) high = Button (3) high.when_pressed = led.on  low.when_released = led.of

RE: log file.

2016-06-14 Thread Joaquin Alzola
>thanks I will look at them. As an example for your guide: ##log_handler### import sys import logging import logging.handlers from configfile_read import * def LogHandler(logger): CONFIG_FILE = ('./conf/' + 'config.ini') config = configfile(CONFIG_FILE) FORMAT = '%(ascti

Re: log file.

2016-06-14 Thread Joel Goldstick
On Tue, Jun 14, 2016 at 4:14 PM, Paul Owen wrote: > thanks I will look at them. > -- > https://mail.python.org/mailman/listinfo/python-list If your program is called 'my_program.py' you can write print statements (or print functions in python 3) and when you run your program, those prints will

RE: log file.

2016-06-14 Thread Paul Owen
thanks I will look at them. -- https://mail.python.org/mailman/listinfo/python-list

RE: log file.

2016-06-14 Thread Joaquin Alzola
>logging please. Check this modules: import logging import logging.handlers This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt. -- https://mail.python.org/m

Re: log file.

2016-06-14 Thread Paul Owen
logging please. my pump programme works but I want to log the time etc. when the pump runs and stops. I am trying to improve the programme I am a novice! -- https://mail.python.org/mailman/listinfo/python-list

Re: log file.

2016-06-14 Thread John Gordon
In <05d2df77-8cd0-467b-8ab3-54bf730d8...@googlegroups.com> owenpaul...@gmail.com writes: > I have a programme to pump out water from a sump and would like to > log to a readable file when the pump operates. what is the easiest > way to acheive this with python 3. Are you asking for help with log

Re: log file.

2016-06-14 Thread Paul Owen
I am very inexperienced at programming.! is there a lot of code needed to use those modules. regards paul. -- https://mail.python.org/mailman/listinfo/python-list

Re: log file.

2016-06-14 Thread Jussi Piitulainen
owenpaul...@gmail.com writes: > I have a programme to pump out water from a sump and would like to log > to a readable file when the pump operates. what is the easiest way to > acheive this with python 3. Depending on any number of details, the easiest may be to just print. Direct stdout and stde