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