strezag / sitecore-rolling-logs-powershell

Run this Powershell script, select your Sitecore log folder, and start a real-time rolling log.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real-time, Filterable Trailing/Rolling Sitecore Logs with PowerShell

Real-time, color-coded Sitecore log monitoring using PowerShell with the option to filter in/out INFO, WARN, ERROR entries.

Choose between two scripts:

RollingSitecoreLogs.ps1

Save and run this script anywhere on your machine.

  1. Right-click and Run with PowerShell.
  2. Select the folder of you Sitecore logs (Data/logs).
  3. Prompt displays to filter log messages (INFO, WARN, ERROR).
  4. The script will automatically grab the latest 'log.*' file and begin reading it with the appropriate filters.

RollingSitecoreLogs-RelativeDirectory.ps1

Save and run this script from a /logs directory.

  1. Drop this script into your Sitecore's log folder.
  2. Right-click and Run with PowerShell.
  3. Prompt displays to filter log messages (INFO, WARN, ERROR).
  4. The script will automatically grab the latest 'log.*' file and begin reading it with the appropriate filters.

About

Run this Powershell script, select your Sitecore log folder, and start a real-time rolling log.

License:GNU General Public License v3.0


Languages

Language:PowerShell 100.0%