Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73926
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: general module auditing |
| Date | 2014-07-04 00:19 +0100 |
| References | (4 earlier) <CAOF-KfhjG82iaS-K9tT3RT1wBMJ_MREUte61FsTPcR1jQKcEaA@mail.gmail.com> <lp2unv$mji$1@ger.gmane.org> <CAOF-KfhLG4UwMOUKaK3q-YD+fEV4RtaHTqD=f19NKBq+N5htYw@mail.gmail.com> <lp3ip8$h76$1@ger.gmane.org> <CAOF-KfhkzMT_VsDWRCmQ-Tc_ngbha200bO-+6G61YnyWeCKyPA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11474.1404429574.18130.python-list@python.org> (permalink) |
On 04/07/2014 00:09, Rita wrote: > > here is what I am doing now, > > egrep 'from|import' *.py | wc -l which is giving me that. But this does > not give me the number of times the particular module gets called. I was > thinking of adding a logging feature to all of my modules so every time > they get called it will be written to a log file with corresponding host > and username. Is there an easy way to do that? > Start here https://docs.python.org/3/library/logging.html#module-logging -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
general module auditing Rita <rmorgan466@gmail.com> - 2014-07-01 06:38 -0400
Re: general module auditing Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-07-01 20:16 +0200
Re: general module auditing Rita <rmorgan466@gmail.com> - 2014-07-01 22:04 -0400
Re: general module auditing Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-07-02 20:46 +0200
Re: general module auditing Rita <rmorgan466@gmail.com> - 2014-07-02 21:17 -0400
Re: general module auditing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-03 07:54 +0100
Re: general module auditing Rita <rmorgan466@gmail.com> - 2014-07-03 05:27 -0400
Re: general module auditing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-03 13:36 +0100
Re: general module auditing Rita <rmorgan466@gmail.com> - 2014-07-03 19:09 -0400
Re: general module auditing Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-07-04 19:05 +0200
Re: general module auditing Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-07-04 19:10 +0200
Re: general module auditing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 00:19 +0100
csiph-web