Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Rahul Gopan wrote: > #!/usr/local/bin/python2.7 > import commands > import subprocess > items = commands.getoutput('COMMAND| wc -l') > print items > > -- Works -- > > #!/usr/local/bin/python2.7 > import commands > import subprocess > import logging > logging.basicConfig(fi

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Aditya Laghate
On 27/05, Rahul Gopan wrote: > > #!/usr/local/bin/python2.7 > import commands > import subprocess > import logging > logging.basicConfig(filename='Log_file.log',filemode='w',format='%(asctime)s > %(message)s',level=logging.DEBUG) > items = commands.getoutput('COMMAND| wc -l') > print items >

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
#!/usr/local/bin/python2.7 import commands import subprocess items = commands.getoutput('COMMAND| wc -l') print items -- Works -- #!/usr/local/bin/python2.7 import commands import subprocess import logging logging.basicConfig(filename='Log_file.log',filemode='w',format='%(asctime)s %(message)

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Gora Mohanty
On 26 May 2014 17:42, Rahul Gopan wrote: > > > > -Original Message- > From: "Rahul G" > Sent: ‎26-‎05-‎2014 05:41 PM > To: "rahulpce...@gmail.com" > Subject: Python script hangs after using logging module > > Hello, > > I tried to make a log file in a python script. After adding the line

[BangPypers] Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
-Original Message- From: "Rahul G" Sent: ‎26-‎05-‎2014 05:41 PM To: "rahulpce...@gmail.com" Subject: Python script hangs after using logging module Hello, I tried to make a log file in a python script. After adding the line below logging.basicConfig(filename='LOG_FILE.log',