Hi,
I need to code a DLL in .NET which logs the response times for our asp.net
multi-tier application. The problem is we need to log the timestamps at
multiple stages in a process lifecycle roundtrip without too much overhead.
We have two webservers which are load balanced and the back end tiers
include Biztalk and several remoting components all of which should ideally
use this same dll for logging timestamps in a central location in the
network. We have AICs in Biztalk where we can insert the component.
So my question is, Is there some readymade component already out there for
this? Maybe an Microsoft application block?
If not, are there any guidelines to follow when building such a dll?
.. Should I log the timestamps in a database table, or is it better to log in
text files?
.. The class should be a static class so it does not have to be instantiated.
.. Make the call to the 'logger' asynchronous. Or should I always call it in
a new thread?
.. Any other considerations?
Our website is a high-volume, highly available, 24/7 environment so this
should have the least bit of overhead to the main web application.
Looking forward to any suggestions/comments.
Thanks!
Chumma Dede 2 1556
I'd suggest you take a look at a couple open source logging
components: Enterprise Library [1] (includes a logging /
instrumentation block) and log4net [2].
I did an article on OdeToCode highlighting some areas you'll want to
consider during design [3]. Ideally, any logging framework will be
configurable enough to use different destinations, depending on your
need. For instance, it's nice to log response times into a database
for day to day operational monitoring, but the day might also come
when it would be great to change a web.config setting and see verbose
tracing information for troublshooting written to a log file on disk.
[1] http://msdn.microsoft.com/library/de...tml/entlib.asp
[2] http://logging.apache.org/log4net/
[3] http://odetocode.com/Articles/294.aspx
HTH,
--
Scott http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 16:36:31 -0500, "Chumma Dede"
<de************ *@chothu.mailsh ell.com> wrote: Hi,
I need to code a DLL in .NET which logs the response times for our asp.net multi-tier application. The problem is we need to log the timestamps at multiple stages in a process lifecycle roundtrip without too much overhead.
We have two webservers which are load balanced and the back end tiers include Biztalk and several remoting components all of which should ideally use this same dll for logging timestamps in a central location in the network. We have AICs in Biztalk where we can insert the component.
So my question is, Is there some readymade component already out there for this? Maybe an Microsoft application block? If not, are there any guidelines to follow when building such a dll?
. Should I log the timestamps in a database table, or is it better to log in text files? . The class should be a static class so it does not have to be instantiated. . Make the call to the 'logger' asynchronous. Or should I always call it in a new thread? . Any other considerations?
Our website is a high-volume, highly available, 24/7 environment so this should have the least bit of overhead to the main web application.
Looking forward to any suggestions/comments.
Thanks! Chumma Dede
Thanks alot!! I will look into the links you gave me.
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:uu******** *************** *********@4ax.c om... I'd suggest you take a look at a couple open source logging components: Enterprise Library [1] (includes a logging / instrumentation block) and log4net [2].
I did an article on OdeToCode highlighting some areas you'll want to consider during design [3]. Ideally, any logging framework will be configurable enough to use different destinations, depending on your need. For instance, it's nice to log response times into a database for day to day operational monitoring, but the day might also come when it would be great to change a web.config setting and see verbose tracing information for troublshooting written to a log file on disk.
[1] http://msdn.microsoft.com/library/de...tml/entlib.asp [2] http://logging.apache.org/log4net/
[3] http://odetocode.com/Articles/294.aspx
HTH,
-- Scott http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 16:36:31 -0500, "Chumma Dede" <de************ *@chothu.mailsh ell.com> wrote:
Hi,
I need to code a DLL in .NET which logs the response times for our
asp.netmulti-tier application. The problem is we need to log the timestamps at multiple stages in a process lifecycle roundtrip without too much
overhead. We have two webservers which are load balanced and the back end tiers include Biztalk and several remoting components all of which should
ideallyuse this same dll for logging timestamps in a central location in the network. We have AICs in Biztalk where we can insert the component.
So my question is, Is there some readymade component already out there
forthis? Maybe an Microsoft application block? If not, are there any guidelines to follow when building such a dll?
. Should I log the timestamps in a database table, or is it better to log
intext files? . The class should be a static class so it does not have to be
instantiated.. Make the call to the 'logger' asynchronous. Or should I always call it
ina new thread? . Any other considerations?
Our website is a high-volume, highly available, 24/7 environment so this should have the least bit of overhead to the main web application.
Looking forward to any suggestions/comments.
Thanks! Chumma Dede This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lkrubner |
last post by:
This might be an idiot question, but how do you group by timestamps by
date? I mean, given a large number of timestamps, spanning many months,
how do grab them and say how many are from each day? If the timestamps
measure visits to a web site, how to easily say there were 45 visits on
January 4th?
The first idea that occurs to me is to put them all in an array and
then loop through the array and use date() on each, one at a time,...
|
by: Skip Montanaro |
last post by:
I have code I run in both live and historical modes. When running in
historical mode the input stream is a set of stored event sequences that
have their own timestamps. When picking through the logfiles for a
particular run, I'd much prefer it if the timestamps in the logfile
generated with the logging package corresponded to the timestamps on the
stored events, not to wall clock time. Looking at the code for the logging
package it's...
|
by: Stan |
last post by:
I will need to implement a site wide logging component for
an Asset Tracking and Management System and I am wondering
if the MSWC.IISLog component with IIS is up to the job and
is customisable for custom use or should i invest time in
creating my own.
Logging needs include exceptions, failures, use tracking,
logging-in information, session stats etc on approx 150
pages for approx 25 users..
|
by: Michael Crawford |
last post by:
Hi,
Where would one start for this type of application:
I want to create an vb.net container application that has
the gives the end user the ability to install and
uninstall plugins or add-in modules. As the user installs
the various components, additional functionality to the
application is integrated. How would I structure or
orchestrate a project plan that makes use of add-in
|
by: Robert Chapman |
last post by:
I run into a strange problem today while enableding ODBC SQL logging on my
IIS Server.
Once the logging was enabled, and working fine, my two ASP.Net Applications
could no longer connect to the database. I got an Access Denied or Server
does not exist error.
The moment I set the logging back to the normal file based logging, the
applications worked again.
| |
by: wh |
last post by:
The application that I'm about to start working on requires maintaining a
list of users currently accessing an asp.net application running on IIS5.0.
I essentially need to monitor which xml files on the server various users
are working on. When a user selects an xml file, it is marked as 'locked'
thus disallowing other users from modifying it. The users will come and go
and I therefore need to remove the 'locked' flag from the respective...
|
by: Craig G |
last post by:
im not too sure how i should be storing the SQL2000 timestamps
basically i return a dataset which is used to populate an editable grid.
this dataset contains the timestamp. how should i be storing the timestamps
for each grid row? is it possible to hold them in the grid in someway? or do
i need to look at other means
ive only used Oracle Timestamps before and they where just decimal
timestamps which made it easy!! could just store them...
|
by: =?Utf-8?B?R2Vvcmdl?= |
last post by:
Hello everyone,
I am using C# and Visual Studio 2005 to develop a class library. I am
wondering whether there are any built-in log component in C# so that I can
utilize directly other than write from scratch?
I am also wondering if there does exist such log component, if multiple
processes using the built-in log component to open the same log file to write
log (in my application, I want all processes which loads the class library
|
by: Vyacheslav Maslov |
last post by:
Hi all!
I have many many many python unit test, which are used for testing some
remote web service.
The most important issue here is logging of test execution process and
result. I strongly need following:
1. start/end timestamp for each test case (most important)
2. immediate report about exceptions (stacktrace)
3. it will be nice to use logging module for output
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |