WAD Issues with LOG Command

Jun 2, 2008
376
2
Newton, MA
After a fresh reboot, I find that the LOG command is not working properly.

First, after I issued the command

log /a /w c:\tcmd\cmdlog-all.log​

the variable %_logfile is still empty.

upload_2015-12-29_22-32-53.png


The log file is there, and it is logging whatever appears in the tab. Here is what I now see at the end:

upload_2015-12-29_22-34-27.png


The help for the LOG commands states as follows:

Command logging creates a record of each internal and external command executed either from the command prompt or from a batch file in the format below:


[date time][id] command


where the date and time are formatted according to the country code set for your system, id is the process ID, and command is the actual command after any alias or variable expansion.
As can be seen from the snippet of my log file above, there is no time stamp and no process ID. When I use the "/H" option with LOG, I also do not get time stamps or IDs. And "echo %_logfile" still returns "ECHO IS OFF". So does "echo %_hlogfile". But it appears that data is being logged to both files.
 
Jun 2, 2008
376
2
Newton, MA
If you want a command (or history) log, do not use the /A option.

What option does one use to specify a command log? The choices seem to be /A, /E, or /H.
 
Jun 2, 2008
376
2
Newton, MA
Command logs are the default. You don't need to specify anything.

May I suggest, then, adding that statement to the help text.

The following statement in the help file is confusing:

The LOG command provides independent controls for two different methods of logging TCC activity:

·Command Log
·History Log
·Output Log

You can only specify one of the /A, /E, and /H options in a single LOG command.​

It states that there are TWO different methods and then lists three. Under the "Command Log" section, it should state that that is the default if none of the three switches is specified.

Why is there no %_ologfile to determine the name of the output log file?

It would also be nice if the help made clear that each of the three can be specified and that one can have as many as three log files running at the same time.
 
Similar threads
Thread starter Title Forum Replies Date
S Issues with version v26.02.42 x64 Support 0
Jay Sage Issues With TCMD File Explorer Support 0
samintz ANSI issues Support 3
KarstenG PSUBST issues with Win10 2004 ? Support 4
Joe Caverly @HISTORY issues Support 4
Peter Murschall V26-Issues in the BDEBUGGER ! Support 11
J Moving from TCC v22 to TCMD v24 issues Support 3
A Downloads page issues Support 1
T @select and @selectarray issues Support 2
M A list of issues .. Support 17
Robert Kantor 20.00.25 Issues Support 6
T tchelp.exe issues Support 2
E Fixed Issues with DEDUPE Support 0
H New Install; Everything setup issues Support 9
cgunhouse Registry Issues Support 8
S Take Command issues at high resolution Support 9
samintz WAD @format has issues in v18.00.14 Support 10
Charles Dye Assorted trivial issues Support 5
jbanaszczyk bdebugger issues Support 4
JohnQSmith Fixed Copying with regex (several issues) Support 7
S Documentation HELP issues Support 8
nikbackm Fixed v15: VIEW - encoding and CSV issues Support 9
Dan Glynhampton Documentation Minor issues with HELP Support 0
B Two Issues With TIMER Command In V14 Support 10
M @FileRead from a device issues... Support 6
R A couple of minor issues with new forum. Support 4
Stefano Piccardi 13.0.31 2 MKLINK TCC vs CMD issues Support 2
S FORUM subscription issues Support 3
M More SafeChars type issues... Support 4
dolmen Compatibility issues with cmd.exe Support 1
S HELP issues Support 9
nikbackm unzip issues in v12 Support 12
samintz bdebugger issues Support 55
vefatica Installer issues Support 7
williamleara Specifying path to TCMD.INI causes issues Support 8
S @SERVER issues Support 1
S @enumservers and @enumshares issues Support 1
S Forum issues Support 4
S FTP issues with 11.0 Support 9
jcalcote Apache Maven startup batch file issues Support 3
Jay Sage TCMD11 Toolbar Issues Support 2
H ZIP/UNZIP issues Support 4
J V10 "Configure tab toolbar" issues Support 3
J weird issues in TC10.00.55 Support 4
S Minor HELP issues Support 1
P bdebugger / ide issues Support 1
Fross Continue to have issues layout in v10 Support 11
J TCMD 10 issues Support 2
R FOR issues Support 5
vefatica v26 exception log gone crazy Support 6

Similar threads