[issue14450] Log rotate cant execute in Windows. (logging module)

2012-04-01 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a logging bug. You called basicConfig with a file name, so the file is opened using a FileHandler and with file name LOG_FILENAME. You then add a RotatingFileHandler with the same name, so the file has two handles referring to it. When the time comes

[issue14450] Log rotate cant execute in Windows. (logging module)

2012-04-01 Thread shinta.nakayama
shinta.nakayama added the comment: Thank you Armaury. Allowing your advice,I tried that code on other machine(Windows7 without Antivirus). But it was same result. Windows says "process cant access to file. that file is using other process.". And could not rotate the logs. --

[issue14450] Log rotate cant execute in Windows. (logging module)

2012-03-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Maybe some Antivirus program (or Tortoise) is still scanning the file and python cannot rename it. Can you try to deactivate the antivirus and try again? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue14450] Log rotate cant execute in Windows. (logging module)

2012-03-29 Thread shinta.nakayama
New submission from shinta.nakayama : I found a bug in logging module in Windows. I wrote that at here. https://gist.github.com/2247692 my OS is Windows7 32bit. C:\Python27>python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "cred