Command line options

Jun 29, 2012 at 2:43 PM

The in-app help mentions at least two valid uses of the command line with Log Expert 

- specifying a specific log file to open.

- specifying a Log Expert session file.

Are there any other command line options?

Where are they documented?

My log files contain timestamps in the filename - so they continually change name. I would like to have a desktop shortcut that would open LE pointing at my logs directory and opening whatever logs it found there. For example if the command line could take a directory name and/or use wildcards to select the logs for opening.


Jul 2, 2012 at 7:49 PM

There are currently only the options you have mentioned. You can specify multiple files to open them all at once. But there's no built-in wildcard support.

With some cmd line magic you can help your own. Here's a cmd file which created a session file out of a wildcard specified on command line:



@echo off
set tempfilename=%TEMP%\myfilenames.lxj
set logexpert_exe=c:\work\LogExpert_CodePlex\branches\dockpanel\LogExpert\bin\Debug\LogExpert.exe

echo. ^<logexpert^>^<project^>^<members^> > %tempfilename%
for %%F in (%1) do echo ^<member fileName="%%~fF" /^> >> %tempfilename%
echo. ^</members^>^</project^>^</logexpert^> >> %tempfilename%
start %logexpert_exe% %tempfilename%


When you save the content above as showlogs.cmd you can launch it with

showlogs c:\logfiles\*.log