<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FWindows%2FEventLog</id>
		<title>VB.Net Tutorial/Windows/EventLog - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FWindows%2FEventLog"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/EventLog&amp;action=history"/>
		<updated>2026-04-05T18:10:55Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/EventLog&amp;diff=3630&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/EventLog&amp;diff=3630&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/EventLog&amp;diff=3631&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/EventLog&amp;diff=3631&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:11Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Display all Application EventLog==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Diagnostics&lt;br /&gt;
Module Module1&lt;br /&gt;
    Sub Main()&lt;br /&gt;
        Dim Log As New EventLog(&amp;quot;Application&amp;quot;)&lt;br /&gt;
        Dim Evt As EventLogEntry&lt;br /&gt;
        For Each Evt In Log.Entries&lt;br /&gt;
            Console.WriteLine(Evt.Message)&lt;br /&gt;
            Console.WriteLine(Evt.TimeGenerated)&lt;br /&gt;
            &lt;br /&gt;
            Console.WriteLine(Evt.Source)&lt;br /&gt;
            &lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;The description for Event ID &amp;quot;0&amp;quot; in Source &amp;quot;CacheMgr&amp;quot; cannot be found.  The local computer may not h&lt;br /&gt;
ave the necessary registry information or message DLL files to display the message, or you may not h&lt;br /&gt;
ave permission to access them.  The following information is part of the event:&amp;quot;Service started&amp;quot;&lt;br /&gt;
15/04/2007 12:41:55 PM&lt;br /&gt;
CacheMgr&lt;br /&gt;
The description for Event ID &amp;quot;1073872930&amp;quot; in Source &amp;quot;Oracle.xe&amp;quot; cannot be found.  The local computer&lt;br /&gt;
...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EventLogEntryType.Information==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Diagnostics&lt;br /&gt;
public class Test&lt;br /&gt;
   Shared Dim logStatus As System.Diagnostics.EventLog = New System.Diagnostics.EventLog&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        &lt;br /&gt;
        If Not EventLog.SourceExists(&amp;quot;StatusSource&amp;quot;) Then&lt;br /&gt;
            EventLog.CreateEventSource(&amp;quot;StatusSource&amp;quot;, &amp;quot;StatusLog&amp;quot;)&lt;br /&gt;
            Console.WriteLine(&amp;quot;Creating event source&amp;quot;)&lt;br /&gt;
        End If&lt;br /&gt;
        &amp;quot; Set the EventLog component&amp;quot;s source.&lt;br /&gt;
        logStatus.Source = &amp;quot;StatusSource&amp;quot;&lt;br /&gt;
        &amp;quot; Write a Starting message to the log.&lt;br /&gt;
        ShowLog()&lt;br /&gt;
        logStatus.Clear()&lt;br /&gt;
        ShowLog()&lt;br /&gt;
   End Sub&lt;br /&gt;
    Private Shared Sub ShowLog()&lt;br /&gt;
        For Each log_entry As EventLogEntry In logStatus.Entries&lt;br /&gt;
            Console.WriteLine(log_entry.Message)&lt;br /&gt;
        Next log_entry&lt;br /&gt;
    End Sub&lt;br /&gt;
   &lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;11/05/2007 12:29:16 PM&amp;gt; Starting&lt;br /&gt;
11/05/2007 12:29:16 PM&amp;gt; Closing&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Write to System EventLog==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Diagnostics&lt;br /&gt;
Module Module1&lt;br /&gt;
    Sub Main()&lt;br /&gt;
        Dim Log As New EventLog(&amp;quot;Application&amp;quot;)&lt;br /&gt;
        Log.Source = &amp;quot;FormEventLog&amp;quot;&lt;br /&gt;
        Log.WriteEntry(&amp;quot;www.vbex.ru&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>