Show More
@@ -15,6 +15,10 b' from . import (' | |||||
15 | ) |
|
15 | ) | |
16 |
|
16 | |||
17 | def openlogfile(ui, vfs, name, maxfiles=0, maxsize=0): |
|
17 | def openlogfile(ui, vfs, name, maxfiles=0, maxsize=0): | |
|
18 | """Open log file in append mode, with optional rotation | |||
|
19 | ||||
|
20 | If maxsize > 0, the log file will be rotated up to maxfiles. | |||
|
21 | """ | |||
18 | def rotate(oldpath, newpath): |
|
22 | def rotate(oldpath, newpath): | |
19 | try: |
|
23 | try: | |
20 | vfs.unlink(newpath) |
|
24 | vfs.unlink(newpath) |
General Comments 0
You need to be logged in to leave comments.
Login now