Ticket T646212
Visible to All Users

Redirect Trace

created 7 years ago

Hi,
I need to redirect the default XAF eXpressAppFramework.log trace file to a database table.

This is my configuration file:

C#
<system.diagnostics> <trace autoflush="true" indentsize="2"> <listeners> <remove name="Default" /> <add name="DBTL" type="CustomTraceListeners.DatabaseTraceListener,Sintesis.Human.Module"/> </listeners> </trace> <switches> <!-- Use the one of predefined values: 0-Off, 1-Errors, 2-Warnings, 3-Info, 4-Verbose. The default value is 3. --> <add name="eXpressAppFramework" value="4"/> <add name="XPO" value="0"/> </switches> </system.diagnostics>

There is no error but the trace output is in eXpressAppFramework.log file.

Thanks in advance,
Marcelo

Answers approved by DevExpress Support

created 7 years ago (modified 7 years ago)

Hello, Marcelo.

UPDATED:
The built-in XAF trace listener can be removed by setting the TraceLogLocation key in the "appSettings" configuration section to None. See the Log Files help topic. This functionality is available starting with version 18.1.4.

In previous versions, you can remove the built-in trace listener in code by calling the System.Diagnostics.Trace.Listeners.Clear method at the application startup (after the Tracing.Initialize method call) and add your own listener to this collection.

    Comments (1)
    DevExpress Support Team 7 years ago

      The built-in XAF trace listener can be removed by setting the TraceLogLocation key in the "appSettings" configuration section to None. See the Log Files help topic. This functionality is available starting with version 18.1.4.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.