jochenwierum / openvpn-manager

An OpenVPN Frontend
https://github.com/jochenwierum/openvpn-manager/wiki
GNU General Public License v2.0
152 stars 55 forks source link

Log to file not working #5

Closed ghost closed 11 years ago

ghost commented 12 years ago

Hi, first let me thank you for your work on this great utility. I'm wondering whether is there a possibility to allow log to a file when there is log file set in ovpn config file? Log .... and Log-Append .... options doesn't seem to be working when I connect through openvpnmanager (There's even no default log file even when log is not specified compared to openvpn-gui - only log available is in openvpnmanger's gui, but I'd definitely prefer to have external one)

Can you please implement this feature or is it some kind of limitation when connecting through management interface?

Regards, Ez.

ghost commented 12 years ago

I've just found out logs are being saved to /Users/.../AppData/Local/Temp/****.tmp instead of specified location in .opvn file.

jochenwierum commented 11 years ago

Thanks for your suggestion. Commit 5a9b355 introduces a mechanism which honors the log directive if it is present, so you will find the logfile exactly where you expect it. If a such a directive is not available, the log file still goes to a temp file. The change will be part of OpenVPN Manager 0.0.3.7

ghost commented 11 years ago

Thanks, just tried new version, but log files are still being saved to /AppData/Local/Temp/ when following log directives are present in config file: log "c:\Program Files\OpenVPN\config\Name.log" or log-append "c:\Program Files\OpenVPN\config\Name.log"

that's with double backslashes ofc.

jochenwierum commented 11 years ago

You were right about log-append. I added it, it is supported in 0.0.3.8 now. But I could not reproduce the problem with log.

I guess you tried log-append first and then switched to log without opening the settings dialog or restarting the software? The config will only be re-read in these situations. However, I hope it simply works now :)

ghost commented 11 years ago

yes that's the case, I forgot to restart ovpnmanager when I changed to log from log-append ;)

ghost commented 11 years ago

Confirming that with 0.0.3.8 log-append now also works.

Cheers!