开发过程当中,会有好多的日志输出到日志文件中了,每次看日志都须要打开,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