I have a little suggestion to improve TIcsLogger. The reason is that I wish to have both date and time in logfile and don't care about millisecs. Also, I don't want to derive classes, override events and all that stuff, just want to make output format customizable.
1) add public variable var TimeStampPattern: string = 'hh:nn:ss:zzz'; 2) line DateTimeToString(Result, TimeStampPattern, Time); change to DateTimeToString(Result, TimeStampPattern, Now); 3) add piblic variable LogSep: Char = ' '; 4) in DoDebugLog replace ' ' by LogSep So in our Form we could do this: FormCreate() begin TimeStampPattern := 'yyyy/mm/dd'#9'hh:nn:ss'; LogSep := #9; end; and get logfiles with easy-to-recognize columns with data, time and message fields. Also there's something to change in adding the new line symbols in case when message already contains them. -- Regards, Anton -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be