[This is preliminary documentation and is subject to change.]

Gets or sets the logging file name for the default trace listener

Namespace: Clarion
Assembly: CLARIONLibrary (in CLARIONLibrary.dll) Version: 6.1.0.7 (6.1.0.7)

Syntax

C#
public static string LoggingFileName { get; set; }

Remarks

Default = CLARION Library.log

Note
This property will only set the logging file name when the DefaultTraceListener is being used for logging.

The logging file has been implemented to maintain consistency between the .NET and Mono frameworks. Please consult the documentation for these frameworks if you wish to configure a TraceListener other than the default.

Caution
When using Visual Studio, setting this property to the empty string (i.e., LoggingFileName = "";) will cause the DefaultTraceListener to send tracing messages to just the "Output" window. However, this will ONLY work when using the .NET framework. The Mono framework and .NET framework have inconsistent implementations for the DefaultTraceListener, except when using a logging file. It is for this reason that the default behavior of the CLARION Library is to specify a logging file.

See Also