473,563 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error Logging

9 1946
On Jul 3, 6:42 am, Rasika WIJAYARATNE <rasi...@gmail. comwrote:
Please check this out:

http://rkwcoding.blogspot.com/2007/0...r-logging.html
I'm not saying it's not an interesting piece (even though I believe
logging should be available at the server as well - it's often a lot
easier to get at, for a start) but I don't think it's worth announcing
every .NET-related blog entry. There are a lot of blogs out there with
some very interesting information - but this isn't the place to
announce them.

All IMO, of course.

Jon

Jul 3 '07 #2
Hi Jon,

Thanks for your valuable feedback. Apologies RE the posting of the
blog link.

Where I was coming from was that IMO a server component should be
light-weight and generic and with as little 'baggage' as possible to
maximize universal re-use.

I guess if the server component in question were only used in-house,
and the logging requirements for all the clients were very similar or
the same, logging on the server does make sense.

Rasika.

Jul 3 '07 #3
On Jul 3, 9:02 am, "R. K. Wijayaratne" <rasi...@gmail. comwrote:
Thanks for your valuable feedback. Apologies RE the posting of the
blog link.

Where I was coming from was that IMO a server component should be
light-weight and generic and with as little 'baggage' as possible to
maximize universal re-use.

I guess if the server component in question were only used in-house,
and the logging requirements for all the clients were very similar or
the same, logging on the server does make sense.
Being able to log on the server *always* makes sense, in my view:

1) Measuring the performance of components is a lot easier with
logging
2) You can find out whether a problem is encountered by many clients
or just one (people won't always report issues)
3) You can get often hold of the logs much more easily on the server
than from a client
4) You can often change a server to add more logging much more easily
than redeploying clients

It depends what you're doing, but so long as you can make the logging
flexible enough to be easily turned off completely, leaving only
minimal performance impact, I think it's great to have the capability
there.

Jon

Jul 3 '07 #4
Thanks for these points...

Jul 3 '07 #5
This is the primary scenario that I was thinking of. Lets say that
there is a library (the server code in this case), which has logging
built into it, that is shipped to many different 3rd party clients.

Some of the clients may not want to use logging at all for their
purpose and some may want to use their own custom logging mechanism,
which is not compatible with the shipped library's logging mechanism.

So they are essentially stuck with a logging solution which they don't
want to or can't utilize, which is hanging around inside the library's
compiled code and adding weight to it. This is unless it can be
compiled out of the code before the library is shipped. However in
this case it may take longer to design and build this ability into the
library.

RKW.

Jul 3 '07 #6
On Jul 3, 10:29 am, "R. K. Wijayaratne" <rasi...@gmail. comwrote:
This is the primary scenario that I was thinking of. Lets say that
there is a library (the server code in this case), which has logging
built into it, that is shipped to many different 3rd party clients.

Some of the clients may not want to use logging at all for their
purpose and some may want to use their own custom logging mechanism,
which is not compatible with the shipped library's logging mechanism.

So they are essentially stuck with a logging solution which they don't
want to or can't utilize, which is hanging around inside the library's
compiled code and adding weight to it. This is unless it can be
compiled out of the code before the library is shipped. However in
this case it may take longer to design and build this ability into the
library.
On the other hand, if they *do* want logging and you've shipped them a
library that has no logging facilities, they're completely out of
luck.

Many logging libraries are very flexible - if you've already got a
logging solution and you want Log4Net to use it, you can easily write
an adapter, for instance. You configure the logging in a file rather
than hard-coding the configuration, and you're away.

Yes, there's the extra dependency on log4net.dll - no great issues.
Yes, there's still a performance hit even if you don't log - but it's
tiny.

The costs involved in the situation where you don't want any logging
but logging is available are small. The problems created by not having
any logging where you *do* want some are massive.

Jon

Jul 3 '07 #7
Great, thank your insight on this.

Jul 3 '07 #8
Rasika,
Why don't you try pinging Pingomatic.com, or a list of RPC ping servers?
That's the appropriate way to promote your blog posts.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder( BETA): http://www.blogmetafinder.com

"Rasika WIJAYARATNE" wrote:
Hi guys,

Please check this out:

http://rkwcoding.blogspot.com/2007/0...r-logging.html

Jul 3 '07 #9
Hi Peter,

Thanks for the links and pointers...

Jul 3 '07 #10

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

Similar topics

1
5019
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I double-checked the path to my error log. It is in /var/www/logs/php_error_log Thanks. :) -Wayne Stevenson
5
16231
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet...
0
4262
by: Rhino | last post by:
I've written several Java stored procedures now (DB2 V7.2) and I'd like to write down a few "best practices" for reference so that I will have them handy for future development. Would the experts here agree with the following? Would they add any other points? 1. If the shop standard calls for logging of application errors, a stored...
10
2684
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was...
7
4989
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version,...
4
1830
by: sm | last post by:
Hi, I have a couple of questions with regards to handling errors and exceptions. 1. If I use On Error goto Errhandler ... Errhandler:
7
8542
by: flupke | last post by:
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3 i get these errors: Traceback (most recent call last): File "C:\Python24\lib\logging\handlers.py", line 71, in emit if...
0
1269
by: Roopesh | last post by:
Hi I am trying to use RotatingFileHandler, in the foll way : rootLogger = logging.getLogger('') rootLogger.setLevel(logging.DEBUG) rotatingHandler = logging.handlers.RotatingFileHandler(self.logobj_path.name,"a", 1000, 10) rotatingHandler.doRollover() rotatingHandler.emit()
2
1789
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have been successfully using the EHAB & Logging Application Block. Now however I get the error below and looking on line I was told that I have not set references to all the dlls. I have set references to the following dlls to enable logging in the EHAB - Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll,...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5481
isladogs
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...
0
3634
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
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
0
916
bsmnconsultancy
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...

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.