How to see the log file updates in real time for Windows OS

I am working on a Java app and i need to see the log file updates in real time rather than refreshing the editor (Notepad ++ or Textpad) each time.

The most powerful tool in windows to see real time log file updates is Powershell.

OS: Windows 7

The following steps will help you to set that up


1. Download Powershell

Use the following helpful links to access and download Powershell
https://technet.microsoft.com/en-us/library/hh847820.aspx
https://technet.microsoft.com/en-us/library/hh847837.aspx#BKMK_InstallingOnWindows7andWindowsServer2008R2

2. Navigate to the folder in which log files are present.

3. Type in the following command
Get -Content -path //log_file_name// -tail 10-wait

Hope this helps :)





No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days