BertB 0 Posted April 10 To avoid getting a logfile too big, I would like to have a separate logfile for every single day. So when I specify: IcsLogger.LogFileName := 'C:\Temp\MyProgram.log'; The following logfiles would be created: C:\Temp\20240410 MyProgram.log C:\Temp\20240411 MyProgram.log and so on. Alternatively 2024-04-10 is okay too. Share this post Link to post
Angus Robertson 574 Posted April 10 IcsLogger is really designed for low level event and message handling development, particularly for SSL, its output is rarely of any benefit for application development, I've not used it for development for many years, and it's not used in any of my ICS applications, nor is it used in any modern ICS samples. Most new ICS components and samples have much better embedded logging that is user friendly, the samples use TIcsBuffLogStream to write logs, and supports date/time mask characters in the file name using the FormatDateTime function, so just use that when preparing the file name for IcsLogger. Angus Share this post Link to post