Skip to content

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

License

Notifications You must be signed in to change notification settings

strezag/sitecore-rolling-logs-powershell

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published