Page 2 of 3

Posted: 2006-11-15, 17:39 UTC
by SanskritFritz
2ghisler(Author)

Code: Select all

2006.11.15 8:04:10: Program start
2006.11.15 12:08:43: Program shutdown

Posted: 2006-11-15, 17:40 UTC
by JohnFredC
Hi Christian...

Here is an example:

[face=courier]
11/13/2006 9:47:26 AM: Copy: U:\Images\Canon\2006\11\IMG_6766.JPG -> D:\Images\Working\Smokies\SmokiesView7\Originals\IMG_6766.JPG
11/13/2006 9:47:26 AM: Copy: U:\Images\Canon\2006\11\IMG_6767.JPG -> D:\Images\Working\Smokies\SmokiesView7\Originals\IMG_6767.JPG
11/13/2006 11:59:47 AM: Unpack: F:\Download\ATT00014.zip/ATT00014.jpg -> C:\DOCUME~1\JFC\LOCALS~1\Temp\_tc\$q\ATT00014.jpg
11/13/2006 11:59:50 AM: Unpack: F:\Download\ATT00014.zip/ATT00017.jpg -> C:\DOCUME~1\JFC\LOCALS~1\Temp\_tc\$q\ATT00017.jpg
[/face]

My request is for there to be a leading zero when the date/time components are only one character-wide.

[face=courier]9:47:26[/face] would display as [face=courier]09:47:26[/face] in the log.

Not high priority, though.

A future enhancement might be for the log to be posted in the syntax of a user's chosen scripting language. TC could look at a command template file and use it to post to the log in AHK, or VBS, or PERL, or any language for which a template had been provided. That seems to me relatively easy to code and would essentially turn TC into an automaton/recorder for the chosen scripting language. A small performance deficit during the log posting would occur.

Posted: 2006-11-15, 17:47 UTC
by ghisler(Author)
Strange, it does have a leading 0 here!

Example:
15.11.2006 09:23:15: Programmende
15.11.2006 09:23:51: Programmstart
15.11.2006 09:34:03: Programmende
15.11.2006 09:35:20: Programmstart
15.11.2006 09:35:44: Programmende
15.11.2006 09:35:49: Programmstart

Posted: 2006-11-15, 17:48 UTC
by StickyNomad
Hm, can't confirm this too. In my log, leading zeros are inserted:

Perhaps it is related to the system's locale settings somehow? I'm using a german XP SP2 with 24h time setting...

Posted: 2006-11-15, 17:57 UTC
by SanskritFritz
Time format ist H:mm:ss bei mir in regional settings, ich denke das ist das problem. Da hat eigentlich Christian recht, dass TC die lokale windows datum und zeitformat nimmt, weil es zu viele alternativen gibt. Mein wunsch daher wäre, das man dies in Optionen einstellen könnte.

EDIT: oops, in english:
Time format is H:mm:ss in regional settings here. i think this is the problem. Christian is right, in taking the system format as it can differ just too much. My request will be in this case: to have an option to set the format for the logfile.

Posted: 2006-11-15, 18:03 UTC
by StickyNomad
2SanskritFritz
Ah, you temporarily have set your brain's locale-setting to german, too :mrgreen:

Indeed, an option would be nice if a one-digit display is set up in the system.

Posted: 2006-11-15, 18:18 UTC
by petermad
2ghisler(Author)
Maybe JohnFredC doesn't have leading 0's because he is using US time convention with AM/PM setting?

But there is more to it than that:

I tried to set my PC to English(USA) for time format, and USA as location, and set TC to use AM/PM format - but even then I cannot get a reading like JohnFredC's
11/13/2006 9:47:26 AM:

I get:
11/13/2006 09:47:26:

My normal (Danish) output is:
13-11-2006 09:47:26:


I also tried on my wife's PC which has a pure US WIndows XP SP2 - also here I get the output as:
11/13/2006 09:47:26:

So how does JohnFredC get his time format in the log files. It must be OS related. What OS are you using JohnFredC?

Posted: 2006-11-15, 19:38 UTC
by SanskritFritz
2petermad
Set your time format to H:mm:ss manually.

Posted: 2006-11-15, 20:45 UTC
by petermad
Set your time format to H:mm:ss manually.
Well H is not an option on a Danish Windows it is T. But if I set it to:

t:mm:ss

I get it JohnFredC's output

I do NOT get it if I use:

T:mm:ss

...wich corresponds to your H:mm:ss - if I don't use a lowercase hour symbol I don't get the AM/PM suffix.

But anyway: It seems that JohnFredC should just go into Windows International setting, choose another language and then choose his own language (English (United States)) again, then he should get the leading 0's back ?

Posted: 2006-11-15, 22:45 UTC
by SanskritFritz
But anyway: It seems that JohnFredC should just go into Windows International setting, choose another language and then choose his own language (English (United States)) again, then he should get the leading 0's back ?
I dont think so. He should manually adjust the regional settings time format. Not really good, but we hope Christian will give us the option ot set the date and time format manually only for the logfile.

Posted: 2006-11-16, 04:07 UTC
by JohnFredC
It is apparently due to my regional settings. I never looked at those before. Never had to.

Changed my time format to "hh" and will test in the morning.

***

Morning. Yes, changing the time format in my regional settings changed the format of the time in the TC log.

Thanks to everyone for the tip! :oops:

Also, in the process of testing, I discover that TC does not appear to log any actions involving the logfile itself.

Posted: 2006-11-16, 16:39 UTC
by ghisler(Author)
I will add a leading 0 even if the regional settings do not use it.

Posted: 2006-11-16, 17:33 UTC
by SanskritFritz
ghisler(Author) wrote:I will add a leading 0 even if the regional settings do not use it.
That is only a half solution. What if I want a completely different datetime format, than the defined one and i dont want to ruin the system settings? Please make it simple for us even for yourself, and give us an option to set the entire format.

Posted: 2006-11-19, 23:27 UTC
by ghisler(Author)
I will now use the date+time formats as in the TC file lists (except for the year, it will be always 4 digits).

Posted: 2006-11-24, 16:31 UTC
by SanskritFritz
2ghisler(Author)
Confirmed in beta 2. Thanks, much better now!
Although you could still consider the options for complete redefinion...