Skip to content
Snippets Groups Projects
Commit 69847777 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

loggingutil: document openlogfile()

This function will be used later for command-server logging.
parent 03127e58
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,10 @@
)
def openlogfile(ui, vfs, name, maxfiles=0, maxsize=0):
"""Open log file in append mode, with optional rotation
If maxsize > 0, the log file will be rotated up to maxfiles.
"""
def rotate(oldpath, newpath):
try:
vfs.unlink(newpath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment