Jump to content
BertB

OverbyteIcsLogger feature request

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×