Log is great! 2 Suggestions:

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2ghisler(Author)

Code: Select all

2006.11.15 8:04:10: Program start
2006.11.15 12:08:43: Program shutdown
I switched to Linux, bye and thanks for all the fish!
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post 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.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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
Author of Total Commander
https://www.ghisler.com
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post 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...
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post 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.
I switched to Linux, bye and thanks for all the fish!
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post 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?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2petermad
Set your time format to H:mm:ss manually.
I switched to Linux, bye and thanks for all the fish!
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post 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 ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post 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.
I switched to Linux, bye and thanks for all the fish!
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post 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.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will add a leading 0 even if the regional settings do not use it.
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post 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.
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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).
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2ghisler(Author)
Confirmed in beta 2. Thanks, much better now!
Although you could still consider the options for complete redefinion...
I switched to Linux, bye and thanks for all the fish!
Post Reply