New submission from Per Cederqvist [EMAIL PROTECTED]:
If TimedRotatingFileHandler is instructed to roll over the log at
midnight or on a certain weekday, it needs to consider when daylight
savings time starts and ends. The current code just blindly adds
self.interval to self.rolloverAt, totally
New submission from Per Cederqvist [EMAIL PROTECTED]:
If nothing is logged during an interval, the TimedRotatingFileHandler
will give bad names to future log files.
The enclosed example program sets up a logger that rotates the log every
second. It then logs a few messages with sleep of 1, 2
Per Cederqvist [EMAIL PROTECTED] added the comment:
The attached program will generate log messages with a timestamp that
are logged into a file with an unexpected extension.
To run:
mkdir badlogdir
python badlogger.py
Running the program takes about 9 seconds.
Added file: http
Changes by Per Cederqvist [EMAIL PROTECTED]:
--
components: +Library (Lib)
type: - behavior
versions: +Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2316
New submission from Per Cederqvist [EMAIL PROTECTED]:
There are three issues with log file removal in the
TimedRotatingFileHandler class:
- Removal will stop working in the year 2100, as the code assumes that
timestamps start with .20.
- If you run an application with backupCount set
New submission from Per Cederqvist [EMAIL PROTECTED]:
In my curent project, I would like to rotate log files on the 1st of
every month. The TimedRotatingFileHandler class cannot do this, even
though it tries to be very generic.
I imagine that other projects would like to rotate the log file
New submission from Per Cederqvist [EMAIL PROTECTED]:
The documentation at
http://docs.python.org/dev/3.0/library/os.html#os.chdir doesn't specify
if the path argument to os.chdir() should be a str or a bytes, or if
maybe both are acceptable. This is true for most of the
file-manipulating
Changes by Per Cederqvist ce...@lysator.liu.se:
--
nosy: +ceder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12394
___
___
Python-bugs-list