473,386 Members | 1,621 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.

Does any one use the Logging application block?

D
I was wondering if anyone knew any places where I could get some more
specifics about it. I have read the docs but they seem very vague to me and
don't describe all the available settings.

Specificaly I'm wondering

1. What is the instrumentation part do? It seems it only counts the number
of logs per second an app generates, that doesn't seem that useful to me.

2. Is there a way to not have messages go to the event log including the
"instrumentation" messages?

3. If I install my program on another machine do I have to run the "Install
Services" from the Enterprise Library on that machine too?

4. I run the Enterprise Library Configuration thing and I'm supposed to open
what file with that? I guessed and opened my apps .config file and added the
config block and logging block but I don't see anything that says turn off
sending messages to the event log.

5. What are the loggingdistributorconfiguration.config and
loggingconfiguration.config files and am I supposed to do anything with
those?

6. Has anyone given up on this and went for log4net instead and was that
better?

7. Can someone give me the short version of what the advantages are of the
exception handling block? I think it allows you to wrap exceptions in a new
class and that new class contains more detailed information. I think you
catch an exception then create a new exception (from the ehb lib) and throw
that. Then you catch that somewhere else and it has all kinds of info in it.
Is that the gist of it?

Thanks
Nov 17 '05 #1
1 1426
D
Like most times right after I post a message I found the answers myself. For
those that are wondering check out www.codeproject.com specifically an
article entitled 'Get Loggin with the Enterprise Library' by Piers Lawson.
That's a good read and answered most of my questions.
"D" <Da**@nothing.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I was wondering if anyone knew any places where I could get some more
specifics about it. I have read the docs but they seem very vague to me and
don't describe all the available settings.

Specificaly I'm wondering

1. What is the instrumentation part do? It seems it only counts the number
of logs per second an app generates, that doesn't seem that useful to me.

2. Is there a way to not have messages go to the event log including the
"instrumentation" messages?

3. If I install my program on another machine do I have to run the
"Install Services" from the Enterprise Library on that machine too?

4. I run the Enterprise Library Configuration thing and I'm supposed to
open what file with that? I guessed and opened my apps .config file and
added the config block and logging block but I don't see anything that
says turn off sending messages to the event log.

5. What are the loggingdistributorconfiguration.config and
loggingconfiguration.config files and am I supposed to do anything with
those?

6. Has anyone given up on this and went for log4net instead and was that
better?

7. Can someone give me the short version of what the advantages are of the
exception handling block? I think it allows you to wrap exceptions in a
new class and that new class contains more detailed information. I think
you catch an exception then create a new exception (from the ehb lib) and
throw that. Then you catch that somewhere else and it has all kinds of
info in it. Is that the gist of it?

Thanks

Nov 17 '05 #2

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

Similar topics

0
by: Joe Bloggs | last post by:
Hi all, I take the pleasure to inform that Dotnet Commons Logging has been released for use. Dotnet Commons Logging, a subproject of the Donet Commons project currently located under the...
3
by: Karuppasamy | last post by:
Hi I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net . I installed everything as per the Instructions given in the 'Development Using the Logging Block'. ...
16
by: Einar Høst | last post by:
Hi, I'm getting into the Trace-functionality in .NET, using it to provide some much-needed logging across dlls in the project we're working on. However, being a newbie, I'm wondering if some...
11
by: cj | last post by:
Public Class MyStringLogger Private Shared m_loglock As New Object Public Shared Sub Write(ByVal str As String) SyncLock (m_loglock) Dim sw As New System.io.StreamWriter("c:\validate.log",...
3
by: Dick | last post by:
How do I integrating ASP.NET Tracing with the Enterprise Library Logging Application Block? I guess this should be possible and in a similar way to the way ASP.NET Tracing is integrated with...
0
by: rajesh.hanchate | last post by:
Please help me in resolving this issue. I am using EnterpriseLibrary 2.0 Exception and logging block for logging exceptions to event log. It works fine for sometime. After some time it stops...
0
by: Raymond Roelands | last post by:
It seems that it's not possible to have nested .Net web applications (application in a virtual directory under another asp.net application) having each application it's own configuration for the...
0
by: =?Utf-8?B?U2hyaWthbnQgTW9yZQ==?= | last post by:
Using enterprise library's 3.1 Logging Application Block , how can i get the custom source name in the windows event log.When ever i am logging an error in windows event log , it gives the source...
1
by: arunairs | last post by:
Hi, Using the EnterpriseLibrary 4.0, is it possible to Log the method name in the log file. I have it cofigured thus: <loggingConfiguration name="Logging Application Block"...
5
by: Daniel S | last post by:
Hi, I'm new here. I'm using the Logging Application Block with Enterprise Library 3.1. My program works correctly on my XP developer station, but on the 2003 Server, no new entries appear in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.