Assembly: SessionLogging (in SessionLogging.exe) Version: DCF34 r11295 DCF_3_4_22
public class Program
Thetype exposes the following members.
Initializes a new instance of theclass
In this example, the session based logging configuration is embedded in the SessionLogging app config. This is where nlog specific parameters are configured, such as the log message layout and the file target destination. See the NLog documentation for more information about configuring the logger.
The File target located in the SessionLogging's app config configures the rotating logger, including items such as the log directory and the name used for each log file. As currently configured and stated earlier, each association will log to its own unique filename based on its session id. The default session logs to a file named using the current processes name; In this scenario, the default log file is named SessionLogger.log.
At the conclusion of the run, the example will interactively ask the user what log files they would like to view, and run notepad for each selection.