Set up tail as a Windows option
Use this procedure to set up the tail.exe
utility in a way that lets you view real-time logging activity in Windows when you right-click a log file name and select a tail option.
- Create a directory on your local drive. For example,
c:\tailoption
. It is preferred to create a separate directory rather than a subdirectory in Activator root directory.
- Copy
tail.exe
from <install directory>\bin
to the directory you created in the previous step.
- In Windows Explore, select Tools > Folder Options.
- Click the File Types tab.
- Scroll down to the LOG extension in the list of file types. Select it and click Advanced.
- Click New.
- In the Action field, type something descriptive like Tail.
- In the Application used to perform action field, type the path of the
tail.exe
file you copied in step 2. For example, c:\tailoption\tail.exe
.
- Click OK.
- In the Actions area, select Tail or whatever you typed in step 7 and click Edit.
- In the Application used to perform action field, type -f between tail.exe and "%1" as follows:
- Before:
C:\tailoption\tail.exe "%1"
- After:
C:\tailoption\tail.exe -f "%1"
- Click OK.
- Optionally, click Set Default to make Tail or whatever you typed in step 7 the default action for log files.
- Click OK.
- Click Close.
- When the application server is running, navigate to <
install directory>\common\logs
, right-click a log file, select Tail or whatever you typed in step 7, and then view the log file as it is being written.
Related topics