VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Custom Log Data (https://forums.vandyke.com/showthread.php?t=3853)

darkoth 09-10-2009 07:47 AM

Custom Log Data
 
I'm curious how I would go about creating a log that does this:

I have the Log file name as: %H.log which is the hostname. I'm happy with that.

I have it start a log upon connect and append to the file. That way if I ever need to go back and see what I did for the host, I simply bring up the file. Now in order for me to see what and when it was I am using custom log data

Upon Connect: ============================================= NEW SESSION ON %M/%D @ %h:%m ===================================================

Upon Disconnect: ============================================= SESSION END ON %M/%D @ %h:%m ===================================================


However it kind of jumbles up the log. I am wondering how to make the Upon Connect and Disconnect lines span more than 1 line and also enter a carriage return.

So I'd see something like this:

Code:

==============================================================================================================================
============================================= NEW SESSION ON 09/10 @ 09:31 ===================================================
==============================================================================================================================

Last login: Thu Sep 10 09:20:14 2009 from glory
Sun Microsystems Inc.  SunOS 5.9      Generic May 2002
# ls
Gadgets/        scripts/    test
# exit

==============================================================================================================================
============================================= SESSION END ON 09/10 @ 09:31 ===================================================
==============================================================================================================================

So there is a carriage return right after the first custom log stuff is sent and then again before the session end lines and after to break it up some.

miked 09-10-2009 09:50 AM

Hi Darkoth,

Thanks for posting your idea. I can see how a newline would help. I've added your suggestion to our request database and we'll post a follow up message if it's added to a future version. If you'd like e-mail notification as well, please let us know.

bgagnon 02-03-2022 12:41 PM

Hello All,

A substitution parameter for an EOL character has been added to custom logging as of SecureCRT v9.2. It's %e.


All times are GMT -6. The time now is 09:57 AM.