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