Hello Anton,

Thanks for your proposal. The feature is interesting, but the implementation 
is not OK. Instead of global variables, it should be properties.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

----- Original Message ----- 
From: "Anton Sviridov" <an...@rambler.ru>
To: <twsocket@elists.org>
Sent: Wednesday, May 06, 2009 12:14 PM
Subject: [twsocket] TIcsLogger proposal


>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 

-- 
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

Reply via email to