LogMan: Create report in C:\%LogFileName%\Trend-Report.htm

Need new test, action, option? Post request here.
Post Reply
terje
Posts: 88
Joined: Mon Jul 25, 2005 7:45 pm
Location: Sydney

LogMan: Create report in C:\%LogFileName%\Trend-Report.htm

Post by terje »

http://www.ks-soft.net/hostmon.eng/la/index.htm#RepMan

EXTRACT:-
Resolve macros

If you enable this option a date macro variables may be specified in the destination file name. Log Analyzer will interpret text between the '%' in the file name as a macro variable, where 'DD' represents the day of the month, 'MM' - the month, 'YY' - the year (2 last digits), 'YYYY' - the year.

This allows creating file names by a template such as one of these:
C:\HostMonitor4\Reports\%DDMMYY%-rep.htm
C:\HostMonitor4\Reports\%YYYY\DD-MM%.htm
I tried using this approach with the Macro set as follows:-
C:\%LogFileName%\Trend-Report.htm

This did not seem to work. I am not sure if the macro %LogFileName% can be used in this context or in this way but I would really like to do so. As such I am not sure if this is a bug or a wish.

I use LogMan via a batch job to generate a number of reports periodically. I would love to just run it against a list of log files and have it create reports filed accordingly.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I tried using this approach with the Macro set as follows:-
C:\%LogFileName%\Trend-Report.htm
This did not seem to work.
Of course it doesn't work. You just quoted the manual, manual "says" about DATE macro variables. You may use %DD%, %MM%, %YY% variables. Not %LogFileName%
I am not sure if the macro %LogFileName% can be used in this context or in this way but I would really like to do so
Ok, probably in next version

Regards
Alex
Post Reply