# 4.7.4. Generating Trace (log) files

There are two different command-line options to create Trace files:

1.The “-tf” option.

The “t” letter stands for “trace” and the “f” letter stands for “fixed name”.

This command-line:

 Anatella.exe –e mygraph.anatella  -tf

…will create a trace file (also named log file) named “mygraph.trace” just “next to” the Anatella graph “mygraph.anatella”: it will be in the same directory (but with another file extension).

This command-line:

 Anatella.exe –e mygraph.anatella  -tfd:\mylog.trace

…will create a trace file (also called log file) named “mylog.trace” in the directory “d:\”

Please note that there are no spaces between the “-tf” command-line option and the trace filename.

2.The “-ta” option

The “t” letter stands for “trace” and the “a” letter stands for “auto” naming.

This command-line:

 Anatella.exe –e mygraph.anatella  -ta

…will create a trace file (also named log file) named:

yyyyMMdd_hhHmm_pPPPP_mygraph.trace”

…that is just “next to” the Anatella graph “mygraph.anatella” (i.e. in the same directory).

In the filename, the letters “yyyy” will be replaced by the current year.

“MM” will be replaced by the current month.

“dd” will be replaced by the current day.

“hh” will be replaced by the current hour.

“mm” will be replaced by the current minute.

“PPPP” will be replaced by the Anatella process id.

For example, if we are in the 21th of March in 2012 at 17:03, the trace filename will be:

20120321_17h03_p1673_mygraph.trace”

This command-line:

…will create a trace file (also called log file) named:

“d:/yyyyMMdd_hhHmm_pPPPP_mylog.trace”

For example, if we are in the 21th of March in 2012 at 17:03, the trace filename will be:

“d:/20120321_17h03_p1673_ mylog.trace”

Please note that there are no spaces between the “-ta” command-line option and the trace filename.

Alternatively, to the above different trace file options, you can also save the content of the log window using the “-te” option (that redirects the content of the log window to the “stdErr”): See the section 4.7.7. to know more about this subject.

For example, these two command-lines are redirecting the StdErr towards a trace file named “d:\mylog.trace”:

 AnatellaConsole.exe mygraph.anatella  2> d:\mylog.trace

 Anatella.exe -e mygraph.anatella -te 2> d:\mylog.trace