Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-10-2009, 07:47 AM
darkoth darkoth is offline
Registered User
 
Join Date: Jun 2007
Posts: 29
Post 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.
  #2  
Old 09-10-2009, 09:50 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,039
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.
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
  #3  
Old 02-03-2022, 12:41 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hello All,

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

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:22 PM.