Xshell Forum

Default folder for log files

Last post: Monday, December 15, 2014 1:55 AM by Steve Yoo, 7 reply

 
Tuesday, September 30, 2014 6:44 AM - Alex

Default folder for log files

 
Hello.
How i can set default folder for log files?
All my sessions files have section:

[LOGGING]
AutoStart=1
Type=0
FilePath=

How i can define, where my logfiles will be created?

Thanks.

Program Ver. : Xshell 5
Wednesday, October 1, 2014 7:38 PM - Support

Re: Default folder for log files

 
To change the log file location, go to Session properties > Logging and there you can set the location and log filename.


---
Technical Support
Thursday, October 2, 2014 1:37 AM - Alex

Re: Default folder for log files

 
Thank you for responce.
Yes, you are right.
But what about default folder?
Can i change it, or it hardcoded?
Thanks.
Sunday, October 5, 2014 7:09 PM - Support

Re: Default folder for log files

 
To change the default log folder, do this:

1. Open Xshell
2. While you are not connected to any session, open the session properties.

This will open session properties for the Default session. Anything you change here will affect the sessions created thereafter.

---
Technical Support
Wednesday, October 8, 2014 11:40 PM - Alex

Re: Default folder for log files

 
Thanks you for support.
Yes, you are right,
but this steps can't allow to change/set default foder for log files.

Session option selected: "Automatically create a new file in the log folder".
In default session or any session - not care.
But user can't set this "the log folder".
No elements in Session Propertied dialog.
Just "Open Log Folder".
Thursday, December 4, 2014 5:54 PM - Nfer

Re: Default folder for log files

 
I have the same problem. The key question is how to change the default folder path where you click "Open Log Folder".
Right now, no matter how I change the settings, everytime, I click "Open Log Folder", it always open "$USER\AppData\Roaming\NetSarang\Xshell\Log Files".
That's really a uncomfortable thing.
Thursday, December 11, 2014 10:34 AM - Jason

Re: Default folder for log files

 
It easy.

1) Go to logging under the session properties.
2) Choose "Use the following file (%n: session name, %d: date, %t :time)"
3) Browse to the folder you want.
4) Add '%n_%d_%t.log' at the end of the path. (no quotes)

Example:
If you have log folder under C drive it would be:
'File Path: C:\Logs\%n_%d_%t.log'



You have to do this for each session you already created. Also, set this under the "local shell" session, so any new session that are create will have this setup by default.
Monday, December 15, 2014 1:55 AM - Steve Yoo

Re: Default folder for log files

 
You can edit multiple sessions by selecting multiple files and right click then select properties.