EF.Logger.TextFile
A logging endpoint that appends log messages to a text file.
TEFTextFileLogEndpoint class
Log endpoint that writes each message, prefixed with a timestamp, as a new line in a text file. Created as a singleton in the unit's initialization section. The target file defaults to the module name with a '.log' extension and can be overridden through configuration (see the 'TextFile/FileName' key) or the FileName property.
pascal
class procedure CreateSingletonInstance;Creates the singleton instance of this endpoint.
pascal
class procedure FreeSingletonInstance;Destroys the singleton instance of this endpoint.
pascal
procedure AfterConstruction;Sets the default file name (the module name with a '.log' extension).
pascal
destructor Destroy;Closes the underlying stream and destroys the endpoint.
pascal
property FileName: string read FFileName write SetFileName;Full path of the log file. Changing it closes the currently open stream so that the new file is used on the next write.
