Gateway daemon tracing can be set in the Gateway daemon configuration file, or with a command option.
For information about controlling trace at run time using the ctgadmin command see Trace options.
For information about enabling trace at startup using the configuration file see Configuring trace settings.
You can enable trace so that it starts whenever you start the Gateway daemon as a Windows service by configuring the Gateway daemon.
Use the -A option on the ctgservice command. For more information, see ctgservice command reference.
To enable standard trace when starting the Gateway daemon use this command:
ctgstart -trace
To
enable debug trace, use this command: ctgstart -x
For more information on starting the Gateway daemon with trace options, see ctgstart command reference.
You can use the Configuration Tool to define a default destination for trace output. See Using the Configuration Tool for more information.
If you do not define a default destination for trace output, trace output is written to stderr on UNIX and Linux and <product_data_path>\gateway.trc on Windows by default.
To override the default destination for trace output on UNIX and Linux, use the ctgstart -tfile option.
To start the Gateway daemon with debug tracing enabled and write the trace output to the file specified in the filename variable, use this command:
ctgstart -x -tfile=filename