Collapse All Expand All

C#

Clarion Library 6.1.1
World..::..LoggingFileName Property
World Class See Also Send Feedback

[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.1.0 (6.1.1.0)

# 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

World Class
Clarion Namespace