473,480 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to make new custom log


How do I make my wery own custom log, so that I don´t need to write into the
Application Log.

I want a log that I can see in computer manament side by side with the three
others : Application, Security and System.

Best Regards

Anders Both, Denmark.
Nov 15 '05 #1
2 1158
Hi Anders

To write to custom log, first you need to create a event source and log. Check this link about CreateEventSource
http://msdn.microsoft.com/library/de...ventsources.as

After this, you can use WriteEntry method to write to the log. Please note, you need to give the event source and log which you created using the previous method. check the below link for WriteEntry
http://msdn.microsoft.com/library/de...entrytopic5.as

Hope this helps

Regards
Madh

MVP | MCSD.NE

----- Anders Both wrote: ----
How do I make my wery own custom log, so that I don´t need to write into th
Application Log

I want a log that I can see in computer manament side by side with the thre
others : Application, Security and System

Best Regard

Anders Both, Denmark

Nov 15 '05 #2
Thx, I will look into it tommorow.

Best Regards ,

Anders Both, Denmark.

"Madhu [MVP]" <an*******@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hi Anders,

To write to custom log, first you need to create a event source and log. Check this link about CreateEventSource, http://msdn.microsoft.com/library/de...entsources.asp
After this, you can use WriteEntry method to write to the log. Please note, you need to give the event source and log which you created using the
previous method. check the below link for WriteEntry. http://msdn.microsoft.com/library/de...ntrytopic5.asp
Hope this helps.

Regards,
Madhu

MVP | MCSD.NET

----- Anders Both wrote: -----
How do I make my wery own custom log, so that I don´t need to write into the Application Log.

I want a log that I can see in computer manament side by side with the three others : Application, Security and System.

Best Regards

Anders Both, Denmark.

Nov 15 '05 #3

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

Similar topics

4
2597
by: Daniele petracca | last post by:
<SCRIPT TYPE="text/javascript"> if (screen.width==1024) { distanza=100; sinistra=100; } else { distanza=10; sinistra=10; } document.write(screen.width);
20
2203
by: Simon Harvey | last post by:
Festive greetings fellow programmers! I've been programming now for about 4, maybe 5 years now. 4 of those years were at university so and I havent had much work experience of making real world...
7
6495
by: Larry R Harrison Jr | last post by:
I am looking for javascript and a basic tutorial on how to make mouse-over drop-down menus--the type that when you "hover" over a subject links relevant to that subject "emerge" which you can then...
6
2416
by: Christian H | last post by:
Hi! I've created a custom control (myDrawControl) that deals with drawing. This control is then added to a form( myMainForm) Now, whenever something is dragged and dropped onto myDrawControl ,...
7
1579
by: Tom | last post by:
How can I make code not execute for a debug build, but do execute for a production build? I have code which prompts for an account and password when the program starts up. It is a pain to have to...
7
2671
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
18
3020
by: smnoff | last post by:
Ok, I am think I am a little more knowledgeable about C and pointers, ughh. And likewise, I want to fix C.....and not so much to make a C++ or Java or C# or even D like language. So, if I...
15
6465
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
3
988
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
Is there and easy way to make an application made with Visual Basic.net (Visual Studio 2003 vintage) look more modern? Thanks! Bob
0
7049
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
7052
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7092
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...
1
6744
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...
0
6981
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...
1
4790
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...
0
4488
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...
0
1304
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 ...
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.