|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Access console output |
|
| Print at Feb 4, 2026, 5:21:13 PM | View all posts in this thread on one page |
| Posted by starrunner at Jan 4, 2020, 2:55:42 PM |
|
Access console output Yesterday another user had problems loading my plugin: https://sourceforge.net/p/sweethome3d/plug-ins/4/?page=1 I wanted to ask, is it possible for a normal user to see the console output of Sweet Home 3D? I know that I can call Sweet Home 3D with the console executable of Java: "...path to my JRE..\bin\java.exe" ... com.eteks.sweethome3d.SweetHome3DBut there are two problems: the included JRE does not contain the "java.exe" and the additional arguments depend on the SH3D version and current environment. So it would be nice, if we had a command line switch, something like: SweetHome3D.exe -log MyLogFile.logOr the user could open the console output from inside of Sweet Home 3D. As I always offer both for my standalone programs, I could provide a patch for that. But I wanted to ask first for any objections. |
| Posted by Puybaret at Jan 5, 2020, 11:15:46 AM |
|
Re: Access console output No need of a command line switch, simply use 2>pathToLog.txt command line Windows option to redirect console output to the desired file: "C:\Program Files\Sweet Home 3D\SweetHome3D.exe" 2>MyLogFile.log---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by starrunner at Jan 5, 2020, 7:36:59 PM |
|
Re: Access console output Good to know, I didn't notice that output redirection even works for javaw.exe. But 2> only redirects the error ouput, to redirect the whole output it has to be "C:\Program Files\Sweet Home 3D\SweetHome3D.exe" > MyLogFile.log 2>&1Anyway, this will help me finding the problems of the error reports. |
|
|
Current timezone is GMT Feb 4, 2026, 5:21:13 PM |