| Author |
Message |
Guest
|
Posted:
Tue Oct 11, 2005 4:51 pm Post subject:
How to prevent Commerce Server logging info in my trace file |
|
|
We are developping an ASP.NET site with Commerce Server 2002 SP3.
We are also using CS objects in console applications, and therefore had
to use code like:
dbgctx = new
Microsoft.CommerceServer.Runtime.Diagnostics.ConsoleDebugContext
(Microsoft.CommerceServer.Runtime.Diagnostics.DebugMode.Production);
octx = new
Microsoft.CommerceServer.Runtime.Orders.OrderContext(...,dbgctx);
myBasket = octx.GetBasket(..);
I face the issue that CS objects are writing debug information inside
the log files of my application (those log files are filled through the
standard Trace.Write() calls).
I've tried using all flavours of DebugMode, without results.
Running my app in RELEASE mode did not help either.
Is there any way to avoid CS debug output ?
Thanks,
AMS. |
|
| Back to top |
|
 |
Vinayak Tadas[MSFT]
Guest
|
|
| Back to top |
|
 |
Guest
|
Posted:
Wed Oct 12, 2005 8:51 am Post subject:
Re: How to prevent Commerce Server logging info in my trace |
|
|
I have already set all pipeline entries in the web.config file to
loggingEnabled="false", but I still get output on the standard trace...
Exemple, on a page that uses Adverstising campaings :
-->START
type:Microsoft.CommerceServer.Runtime.Targeting.DisposableDictionary
dic entry:size=Banner
dic entry:width=468
dic entry:height=60
dic entry:event_name=Request
dic entry:events_served=3473
Any idea where this could come from ?
AMS |
|
| Back to top |
|
 |
David Messner [MSFT]
Guest
|
Posted:
Wed Oct 12, 2005 8:51 am Post subject:
Re: How to prevent Commerce Server logging info in my trace |
|
|
I searched the source code for CS2002 and I don't find anywhere the product
traces such strings. My guess is that someone was trying to figure out
what kind of type was returned for the IDictionary here and was dumping out
the key/value pairs to see what was inside. Do you have all the source
code used by all components in your application and have you searched
carefully for those "entry" strings?
Thanks
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved. |
|
| Back to top |
|
 |
Guest
|
Posted:
Thu Oct 13, 2005 8:51 am Post subject:
Re: How to prevent Commerce Server logging info in my trace |
|
|
After further check, I realized you are perfectly right : it came from
deep inside our app.
Sorry for that and thanks a lot to all of you !
AMS |
|
| Back to top |
|
 |
|
|
|
|