Wonderlarr Posted May 13, 2022 Share Posted May 13, 2022 (edited) Hey guys, I threw together a batch script a few days ago that I've been using CONSTANTLY, so I figured I'd share it, as it's saved me so many annoying clicks. It's as simple one-liner that opens the Client and Server logs in Windows Terminal, so you'll need that to use this. It comes with Windows 11 by default as far as I know, and Windows 10 users can install it from the Microsoft Store for free. Here's the code, it's pretty simple. It tells wt (Windows Terminal) to make a couple of tabs, color them red and blue, name them, and make them tail the client and master_server logs. Nothing much to it, but pretty useful for me, and I hope to you too! cmd /c "wt --title "Server Log" --tabColor #AA0000 PowerShell Get-Content %homepath%/Documents/Klei/DoNotStarveTogether/master_server_log.txt -wait; new-tab --title "Client Log" --tabColor #0000AA PowerShell Get-Content %homepath%/Documents/Klei/DoNotStarveTogether/client_log.txt -wait" Here's a download for it if you'd like. It uses the same exact code from above, just pasted inside a batch file. open_logs.bat Edited May 13, 2022 by TheSkylarr 1 Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/ Share on other sites More sharing options...
Leonidas IV Posted May 22, 2022 Share Posted May 22, 2022 Pretty useful 1 Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/#findComment-1572455 Share on other sites More sharing options...
Developer zarklord_klei Posted June 13, 2022 Developer Share Posted June 13, 2022 I have used BareTail for log file following, basically since I started modding DST, its capable of remembering the open log files, so you don't need to constantly re-open them, and its capable of doing line highlighting based on keywords, and its free. 3 1 Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/#findComment-1576744 Share on other sites More sharing options...
Wonderlarr Posted June 13, 2022 Author Share Posted June 13, 2022 4 minutes ago, zarklord_klei said: I have used BareTail for log file following, basically since I started modding DST, its capable of remembering the open log files, so you don't need to constantly re-open them, and its capable of doing line highlighting based on keywords, and its free. Never heard of it, but from the screenshots that highlighting could be super useful! I'll give it a try later today. Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/#findComment-1576747 Share on other sites More sharing options...
RoastedCarrots Posted January 13, 2024 Share Posted January 13, 2024 On windows you can also use WSL Ubuntu to provide the bash `tail -f` command. You can also use a Visual Studio Code (vscode) extension "Log Viewer", with settings.json configured for the workspace like so: { "logViewer.watch": [ "master_server_log.txt", "client_log.txt" ] } Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/#findComment-1694045 Share on other sites More sharing options...
Wonderlarr Posted January 14, 2024 Author Share Posted January 14, 2024 13 hours ago, RoastedCarrots said: On windows you can also use WSL Ubuntu to provide the bash `tail -f` command. You can also use a Visual Studio Code (vscode) extension "Log Viewer", with settings.json configured for the workspace like so: { "logViewer.watch": [ "master_server_log.txt", "client_log.txt" ] } Better suggestion than mine honestly, definitely makes organization a bit easier! Link to comment https://forums.kleientertainment.com/forums/topic/140218-tool-server-client-log-tail/#findComment-1694118 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now