View Single Post
  #3  
Old 03-23-2018, 11:09 AM
dlong dlong is offline
Registered User
 
Join Date: Dec 2015
Posts: 15
Hi Brenda,

I am using the crt.Session.LogFileName property to specify a log location, and I try to reset the logfile location at the end, but all subsequent sessions use the "LD117" file structure.


logfile = "C:\files\secureCRT\MyLocation\LD_117_ERL_" & strYear & "-" & strMonth & "-" & strDay & "_" & strHour & strMin & StrSec & ".txt"
crt.Session.LogFileName = logfile

' Enable logging
crt.Session.Log True

(stuff gets captured)

crt.Session.Log False
logfile = "C:\files\secureCRT\MyLocation\%Y-%M-%D_%h-%m-%s.txt"

UPDATE: My bad. I was not adding in the command to set the logfile at the end: crt.Session.LogFileName = logfile

Last edited by dlong; 03-23-2018 at 11:12 AM.
Reply With Quote