##// END OF EJS Templates
loggingutil: document openlogfile()...
Yuya Nishihara -
r40831:69847777 default
parent child Browse files
Show More
@@ -15,6 +15,10 b' from . import ('
15 15 )
16 16
17 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 22 def rotate(oldpath, newpath):
19 23 try:
20 24 vfs.unlink(newpath)
General Comments 0
You need to be logged in to leave comments. Login now