473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Trace support for class library

Sek
Gurus,

I have a typical situation.

I have a class library in C# having some core functionality. I want to
use Trace feature in this. I noticed that, i can't use TraceSwitch
option as it is tied to the app rather than library. So, i thought of
having my own config xml for library and load the params on loading the
library.
I was able to control the tracing output based on the switch. No
issues!
Before going further, is there any other way to control Trace in a
library?

COming to the next part of the problem, i have a unit test app for the
library. I need to have tracing feature in this as well, for which i
again thought of using tracelistener.

In this situation, i would like to log the app data seperately and lib
data in seperate log files.
Presently, I see all the log data in both the log files, which i don't
want.

What would be the best way to implement logging in this scenario?

TIA.
Sek

Apr 13 '06 #1
0 970

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bennett Haselton | last post by:
I've noticed that if you enter the following code in the codebehind page for an .aspx page, it won't compile because the call to Trace.Write() is not valid except in methods of a class derived from...
0
by: martin | last post by:
Hi, I have created an asp.net application as a project, and also another project that is just a class library. My asp.net application calls a function in the class library. I am attempting to...
5
by: guy | last post by:
Where do I get trace output? Trace.Write("Hello World");
1
by: Brett Robichaud | last post by:
I'm using trace.axd to monitor usage of a web app during the qa process. I have found that the log is cleared periodically and am curious if there is any way to control it, and if anyone know when...
2
by: MALBANESE | last post by:
I am having trouble using TRACE.AXD to debug my project whan I have Forms Authentication configured. When I try to load the Trace application i am taken to the login page. After I log in I get an...
3
by: JR | last post by:
I'm experiencing a problem where, for seemingly no reason, trace output stops being logged (and appearing on my pages.) trace.enabled suddenly just turns to false. Any idea why this happens?...
9
by: Aaron | last post by:
this is what I want to do. i have an input box and a submit button. the input gets processed by my program and it returns the results. depending on the input, not all the functions in my program...
2
by: Benny | last post by:
Is there a way to trace exceptions and messages captured with the Enterprise Library to a custom destination like a text box or any other control? If not can anyone think of a way to "hack"...
1
by: Alexander Wolff | last post by:
When asp.net trace is enabled in web.config, http://mywebserver/myApp/trace.axd list parameter/value pairs for each control in the HTML Form, ok (this is basic asp.net information and work for all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.