Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow to set log file using command line -log #97
I intend to use PuTTYTray with MTPuTTY, which can create virtuals sessions on one real PuTTY session, containing for exemple default settings (font, size, ..), but I'd like to set the log file individually for each session using arguments.
Could you implement a -log command line option that allow to override the log file contained in the session ?
Ex: putty.exe -load "!Défaut" -log myserver.log my.server.net
added a commit
Sep 1, 2013
I just did what KiTTY was doing.
Turning the logging on makes sense... if you're assuming it's overriding the default settings, and that the logging is off. Perhaps it should set the logtype only if the logtype is off?
Otherwise the parameter does nothing when the logging is disabled, which doesn't seem like what people would expect.
I'm not sure what I feel about overwrite and flush. Maybe the intention here is to have it act like
I don't see why overwrite should be forced ; if my template/filename is wrong I'd rather have my log file "corrupted" with new data appended than completly overwrited ;)
Anyway thank you, will you release soon a release including this ?
I don't know if you still have notifications in this issue @FauxFaux , but could you correct the behaviour of this option ?
Maybe I could write a patch for this.