KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

Logging issue with cloned session

Open afabler opened this issue 2 years ago • 3 comments

Hello! Is it possible to add one more identifier into settings for file name like &S (session name) to avoid mixing of outputs from different sessions in one session log?

afabler avatar Dec 27 '22 14:12 afabler

I was about to propose the same. I often have multiple sessions open simultaneously and the handling isn't very good. I was however going to propose to add more unique identifiers, when I have multiple sessions open to the same host the session name tends to be identical.

I was thinking along the line of:

  • Timestamp of the session start (maybe this is already possible with the current time variable? Haven't tested it yet TBH)
  • Source port (should always be unique)
  • counter of the number of sessions

schneidr avatar Jan 04 '24 08:01 schneidr

Okay, I tested the &T variable, it results in HHMMSS, which fits my needs (as long as I don't open two sessions within the same second, which is unlikely).

&Y-&M-&D-&H-&T.log results in 2024-01-04-hostname-093258.log

schneidr avatar Jan 04 '24 08:01 schneidr

It would however be nice if KiTTY were able to create subdirectories according to variables.

Example:

C:\Path\to\logs\&Y\&M\&Y-&M-&D-&H-&T.log

Currently it just silently doesn't write any logs with a path like that.

schneidr avatar Jan 04 '24 08:01 schneidr