by mindphp » 18/11/2019 1:45 pm
ดู Logs ไฟล์ บน Windows Server แบบ Real Time
ก่อนอื่นให้เปิด โปรแกรม
Windows Powershell ขึ้นมาก่อน (แนะนำให้เปิดในโหมท run as administrator)
เมื่อได้หน้าจอขึ้นมาแล้ว พิมพ์คำสังดังนี้
รูปแบบ
ตัวอย่าง Apache Logs
Code: Select all
Get-Content D:\xampp\apache\logs\access.log –Wait
ผล

- image.png (547.68 KiB) Viewed 571 times
ดู Logs ไฟล์ บน Windows Server แบบ Real Time
ก่อนอื่นให้เปิด โปรแกรม [url=https://www.mindphp.com/%E0%B8%9A%E0%B8%97%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1/microsoft/5311-power-shell-core-windows-power-shell.html]Windows Powershell[/url] ขึ้นมาก่อน (แนะนำให้เปิดในโหมท run as administrator)
เมื่อได้หน้าจอขึ้นมาแล้ว พิมพ์คำสังดังนี้
รูปแบบ
[code]Get-Content myTestLog.log –Wait[/code]
ตัวอย่าง Apache Logs
[code]Get-Content D:\xampp\apache\logs\access.log –Wait[/code]
ผล
[attachment=0]image.png[/attachment]