| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > DbAuditManager > DbAuditManager Methods >====== OpenLogFile (open the audit log file) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[oninsert update audit log file when a record is added .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setfm determine log file status .htm|{{btn_next_n.gif|Next page}}]] | | || **OpenLogFile(**//filename//**), PROTECTED** {{blk2blue.jpg|blk2blue.jpg}} | **OpenLogFile** | Opens the audit log file. | | //filename// | A string constant, variable, EQUATE, or expression containing the label of the file that is audited. | The **OpenLogFile **method opens the audit log file that is to be updated. If the log file does not already exist, the file is created and the headers are added to it. **Implementation:** This method is called by the AppendLog method to ensure the log file exists before trying to update it. **See Also:**     [[appendlog initiate audit log file update .htm|AppendLog]], [[dblogfilemanager.htm|DbLogFileManager class]]