def __init__(self, logFolder, name=DEFAULTLOGNAME, messageLevel=MessageType.INFORMATION, append=false): writer = StreamWriter(filePath, True) writer.Write(DEFAULTHTMLHEADER) writer.Flush() writer.Close()
def dispose(self, disposing): if (disposing and os.path.isfile(filePath)): writer = StreamWriter(filePath, True) writer.WriteLine("</body></html>") writer.Flush() writer.Close()