-
Hello, I´d like to catch the terminal output / errors of "fyne.io/fyne/v2/dialog" and pump them into a log file. Terminal output: In the example below the terminal output of fmt.println is written to pipe, readable and can be sent to a logfile - that works perfectly well. Now, I´d like to achieve the same result with a fyne dialog - Does anybody can please give me any hint / idea on how to do this? `old := os.Stdout fmt.Println("Hello, playground") // this gets captured out, _ := ioutil.ReadAll(r) tmp := string(out[:]) M.Log.Println("Captured:" + tmp) // prints: Captured: Hello, playground` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
What do you mean with this? It does not print anything to the terminal; you are just creating a folder dialog object. What are you expecting to happen? If you want to print the object that you opened, then you need to put a println call within the function you pass to the dialog. |
Beta Was this translation helpful? Give feedback.
What do you mean with this? It does not print anything to the terminal; you are just creating a folder dialog object. What are you expecting to happen?
If you want to print the object that you opened, then you need to put a println call within the function you pass to the dialog.