How to prevent Commerce Server logging info in my trace file
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
How to prevent Commerce Server logging info in my trace file

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Guest






Posted: Tue Oct 11, 2005 4:51 pm    Post subject: How to prevent Commerce Server logging info in my trace file Reply with quote

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





Posted: Wed Oct 12, 2005 12:50 am    Post subject: RE: How to prevent Commerce Server logging info in my trace Reply with quote

See this article on enabling/disabling pipeline logging
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2002/ht
m/cs_sp_nettutorial_zksk.asp

Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only
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 Reply with quote

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 Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB