Show-Diagnostic Open or list the diagnostic log files written by GitEasy.
Description
Every GitEasy command writes a small log file describing exactly what happened during that run. Show-Diagnostic gives you a friendly way to find and open those logs without knowing where they live.
With no parameters, Show-Diagnostic opens the most recent log in the default editor. With -List, it prints a table of recent logs with timestamps and sizes. With -All, it opens the logs folder in Explorer.
Recipes
Recipe 1
EXAMPLE 1
Show-Diagnostic
Recipe 2
EXAMPLE 2
Show-Diagnostic -List
Recipe 3
EXAMPLE 3
Show-Diagnostic -List -Count 5
Recipe 4
EXAMPLE 4
Show-Diagnostic -All
Notes
Logs older than 30 days are automatically pruned each time a new log is written. To send a log to a colleague, attach the file directly - it is self-contained.
Parameters
-List optional SwitchParameter
Print a table of recent logs. Use with -Count to control how many.
-All optional SwitchParameter
Open the logs folder in Explorer.
-Count optional Int32
With -List, the maximum number of log entries to print. Defaults to 10.
-LogPath optional String
Override the directory to look in. Defaults to %LOCALAPPDATA%\GitEasy\Logs and can be overridden site-wide through the GITEASY_LOG_PATH environment variable.
Was this page helpful? Report an issue or suggest an improvement →