Topic Path: Symbol Reference > Classes > TIdLogFile Class > TIdLogFile Methods > Open Method
ContentsIndexHome
PreviousUpNext
TIdLogFile.Open Method

Opens the output destination for messages written using the logging intercept.

procedure Open; override;

Open is an overridden procedure used to open the output destination for messages written using the logging intercept. 

Open allocates resources for the internal TIdStreamVCL instance used to write log messages the filename specified in Filename

When Filename does not already exist, it is created. For an existing file in Filename, the stream is positioned at its end to append new log messages. 

Use Close to free the internal TIdStreamVCL instance used to write log messages to the file specified in Filename

Open does not call the inherited method. 

Open cannot be called from within the form designer or IDE; it has no effect and the method is exited without performing any action.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.