473,662 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I use EventLogTraceLi stener? Iis documentation correct?

According to MSDN the following config files settings provide send tracing
information to event log:

<add name="MyListene r"
<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r, Version,
Culture, PublicKeyToken"
initializeData= "MyConfigEventL og"/>

This doesn't work though.

How do I use EventLogTraceLi stener?

Thanks,

-Stan
Jul 21 '05 #1
7 8064
For a TextWriterTrace Listener, the following works for me:

<add name="BTListene r"
type="System.Di agnostics.TextW riterTraceListe ner,System,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
initializeData= "C:\temp\BTFile Processing.log" />

José

"Stan" <no****@yahoo.c om> a écrit dans le message de
news:O6******** ******@tk2msftn gp13.phx.gbl...
According to MSDN the following config files settings provide send tracing
information to event log:

<add name="MyListene r"
<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r, Version,
Culture, PublicKeyToken"
initializeData= "MyConfigEventL og"/>

This doesn't work though.

How do I use EventLogTraceLi stener?

Thanks,

-Stan

Jul 21 '05 #2
Where did you get version and PublicKeyToken from?

"José Joye" <jose.joye@__No _SPam__bluewin_ _maPS_oN__.ch> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
For a TextWriterTrace Listener, the following works for me:

<add name="BTListene r"
type="System.Di agnostics.TextW riterTraceListe ner,System,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
initializeData= "C:\temp\BTFile Processing.log" />

José

"Stan" <no****@yahoo.c om> a écrit dans le message de
news:O6******** ******@tk2msftn gp13.phx.gbl...
According to MSDN the following config files settings provide send tracing information to event log:

<add name="MyListene r"
<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r, Version, Culture, PublicKeyToken"
initializeData= "MyConfigEventL og"/>

This doesn't work though.

How do I use EventLogTraceLi stener?

Thanks,

-Stan


Jul 21 '05 #3
From the GAC (\WINNT\Assembl y).
The values I have are those installed with the 1.1 Framework for the
"System" assembly

José
"Stan" <no****@yahoo.c om> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Where did you get version and PublicKeyToken from?

"José Joye" <jose.joye@__No _SPam__bluewin_ _maPS_oN__.ch> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
For a TextWriterTrace Listener, the following works for me:

<add name="BTListene r"
type="System.Di agnostics.TextW riterTraceListe ner,System,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
initializeData= "C:\temp\BTFile Processing.log" />

José

"Stan" <no****@yahoo.c om> a écrit dans le message de
news:O6******** ******@tk2msftn gp13.phx.gbl...
According to MSDN the following config files settings provide send tracing information to event log:

<add name="MyListene r"
<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r, Version, Culture, PublicKeyToken"
initializeData= "MyConfigEventL og"/>

This doesn't work though.

How do I use EventLogTraceLi stener?

Thanks,

-Stan



Jul 21 '05 #4
Hello Stan,

José is correct. In addition, some fields like PublicKeyToken are optional,
you can simplify it as the following:

<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r"
initializeData= "MyConfigEventL og"/>

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5
And what is the role of initializeData= "MyConfigEventL og" ?

"Tian Min Huang" <ti******@onlin e.microsoft.com > wrote in message
news:dO******** ******@cpmsftng xa06.phx.gbl...
Hello Stan,

José is correct. In addition, some fields like PublicKeyToken are optional, you can simplify it as the following:

<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r"
initializeData= "MyConfigEventL og"/>

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #6
Hello Stan,

Thanks for your response.

For the EventLogTraceLi stener, the initializeData specifies the event log
to send events to. You can go to "Control Panel" -> "Administra tive Tools"
-> "Event Viewer" to see the result. As in this case, an entry named
MyConfigEventLo g will be created in the event log.

While for the TextWriterTrace Listener, the initializeData attribute
specifies a file to output data to.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #7
I did not know about the simplified way...
I much prefer it since it is not version related.

By the way, I really agree with Stan, the documentation regarding usage of
tracing in the .exe.config file is rather confusing. It could be good to
update it ;-)

José
"Tian Min Huang" <ti******@onlin e.microsoft.com > a écrit dans le message de
news:dO******** ******@cpmsftng xa06.phx.gbl...
Hello Stan,

José is correct. In addition, some fields like PublicKeyToken are optional, you can simplify it as the following:

<add name="MyEventLi stener"
type="System.Di agnostics.Event LogTraceListene r"
initializeData= "MyConfigEventL og"/>

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #8

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

Similar topics

4
2357
by: Paulo Morgado | last post by:
Hi al How do I specify the EventLogEntryType when writing to EventLogTraceListener -- Paulo Morgad Portuga
2
2375
by: Ken | last post by:
I would like to start using EventLogTraceListener, and am running into a couple of significant limitations: 1) I have found that there is no way to write EventLog entries with different EventLogEntryTypes. It seems that EventLogTraceListener is only capable of writing entries with EventLogEventType.Informat­ion, even for Trace.Fail. Is this assessment correct? 2) EventLogTraceListener.Flush (and the idea of buffering writes) is not...
8
1994
by: Will Pittenger | last post by:
I have a Windows program C# .NET solution where when I update its XML documentation, some tags are not recognized and turned into the corresponding HTML. Those tags include <c>, <code>, <para>, <paramref>, and <exception>. <remarks> works; I have not tried <include>. Is this a bug in Studio or am I using those tags incorrectly? When the tag appears to have an attribute, I have tried <paramref="parameter">paramter name</paramref> and...
0
1299
by: julien | last post by:
Hi, I have the following listeners in the web.config: <add name="FileTraceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\CapriMon\CapriMon.log"/> <add name="EventLogTraceListener" type="System.Diagnostics.EventLogTraceListener" initializeData="CapriMon"/> In my codebehind, I use Trace.WriteLine(...) whenever I want to log
7
211
by: Stan | last post by:
According to MSDN the following config files settings provide send tracing information to event log: <add name="MyListener" <add name="MyEventListener" type="System.Diagnostics.EventLogTraceListener, Version, Culture, PublicKeyToken" initializeData="MyConfigEventLog"/> This doesn't work though.
97
4354
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Meyer Among the treasures available in The Wiki is the current copy of "the Sorting min-howto":
10
1781
by: Lloyd Dupont | last post by:
Let say I have 2 methods: void BeginGroup(); void BeginGroup(string msg); when I want to refer to them I write /// <see cref="BeginGroup"/> But this cause a compiler warning, where my declaration is ambiguous (between the 2 BeginGroup methods). But what if I want to refer them both?
12
1739
by: J Ames | last post by:
My team has recently been moved into the Microsoft space from the Java space. For the most part we are really enjoying the VS.NET 2005 environment, and have had little problem picking up C# (and VB.NET too since almost every developer these days has gone thru a VB phase). The problem we have found is that there apparently is no equivalent to javadoc in VS.NET. We found where you can use XML based comments and create a XML documentation...
3
4068
by: Noman Ali | last post by:
Hi, It seems that ASP .NET 2.0 does not support XML documentation feature. Is there any way to do this? I serached alot and only find this solution but it didnot works for C#. Here it is. http://www.carljohansen.co.uk/codelib/copyappcodexml/
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
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,...
0
8764
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4180
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...
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.