473,326 Members | 2,147 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,326 software developers and data experts.

Error Logging

9 1929
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
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...
5
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...
0
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...
10
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...
7
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....
4
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
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...
0
by: Roopesh | last post by:
Hi I am trying to use RotatingFileHandler, in the foll way : rootLogger = logging.getLogger('') rootLogger.setLevel(logging.DEBUG) rotatingHandler =...
2
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.