Set command componnt as log output
@@ -3,6 +3,7 @@ package ui
import (
"bytes"
"fmt"
+ "log"
"regexp"
"strings"
"time"
@@ -922,6 +923,8 @@ func NewWindow(doRestart chan bool, app *tview.Application, session *discordgo.S
window.registerMouseFocusListeners()
+ log.SetOutput(window.commandView)
+
return &window, nil
}
