XFNLNET_CLASS_SINGLELOGFILE

Log all sessions to a single file

The XFNLNET_CLASS_SINGLELOGFILE setting enables you to specify that information from all xfNetLink .NET sessions is logged to a single file rather than each session in a separate file. It can be set for all classes or a single class.

TRUE or FALSE.

The default is FALSE, which means that a separate log file is used for each class that instantiates a connection to xfServerPlus, and a date/time stamp is appended to the end of the log filename (before the file extension) to differentiate the logs. Set to TRUE to use a single log file for all sessions.

CLASS in the environment variable name can be either DEFAULT (which means the setting applies to all classes) or the name of a specific class in your assembly (which means it applies only to that class).

This environment variable can be used with any xfNetLink .NET application. If an application configuration file exists for a .NET Framework application, the value set in the config file will override the corresponding environment variable.

The environment where the client program runs.

xfNetLink .NET

Using client-side logging

In this example, a single log file is used for all classes in the assembly except MyClass, which will have a separate logfile.

set XFNLNET_DEFAULT_SINGLELOGFILE = TRUE
set XFNLNET_MyClass_SINGLELOGFILE = FALSE