**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Diagnostics / TraceOutputFilter.cs
blob696b3f509868fc18c55febd79143b31da34534b2
1 //
2 // TraceOutputFilter.cs: Trace Output Filter
3 //
4 // Author:
5 // Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
10 using System;
12 using Microsoft.Web.Services.Configuration;
14 namespace Microsoft.Web.Services.Diagnostics {
16 public class TraceOutputFilter : SoapOutputFilter {
18 private const string tracename = "OutputTrace.webinfo";
19 private string file;
21 public TraceOutputFilter ()
23 string filename = WebServicesConfiguration.Config.TraceOutput;
24 if (filename == null)
25 filename = tracename;
26 file = TraceFilter.GetCompleteFilename (filename);
29 public override void ProcessMessage (SoapEnvelope envelope)
31 TraceFilter.WriteEnvelope (file, envelope);