開發過程當中,會有好多的日誌輸出到日誌文件中了,每次看日誌都須要打開,log文件,以爲麻煩web
找了個省事的方法shell
使用PowerShellapp
使用命令:Get-Content D:\www\webapp1\Logs\t20190116.log -waitwebapp
Get-Content 獲取指定文件的內容日誌
-wait:等待文件輸出,每秒檢查一次,ctrl+c退出開發
參考:https://docs.microsoft.com/zh-cn/powershell/module/Microsoft.PowerShell.Management/Get-Content?view=powershell-5.1it