52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
LogManagement Sample
|
|
|
|
Demonstrates some of the logging capabilities of Windows Event Log.
|
|
|
|
This sample retrieves log information, exports events into a log archive,
|
|
saves the localized message information for the exported log archive, and clears the log.
|
|
|
|
|
|
Sample Language Implementations
|
|
===============================
|
|
This sample is available in the following language implementations:
|
|
C#
|
|
|
|
Files
|
|
=============================================
|
|
ReadMe.txt
|
|
LogManagement.cs
|
|
LogManagement.csproj
|
|
LogManagement.sln
|
|
|
|
Prerequisites
|
|
=============================================
|
|
1. Microsoft Windows Vista or later
|
|
2. Microsoft .NET3.5 or later
|
|
3. Visual Studio 2008 (for LogManagement.sln solution file)
|
|
|
|
|
|
To build the sample using the command prompt:
|
|
=============================================
|
|
1. Open Microsoft Windows SDK Command Prompt window and navigate to the sample directory.
|
|
2. Type msbuild LogManagement.csproj.
|
|
|
|
|
|
To build the sample using Visual Studio 2008:
|
|
================================================
|
|
1. Open Windows Explorer and navigate to the directory.
|
|
2. Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
|
|
3. In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
|
|
|
|
|
|
To run the sample:
|
|
=================
|
|
1. Navigate to the directory that contains the new executable using the command prompt.
|
|
2. Type LogManagement.exe at the command line.
|
|
|
|
|
|
Additional Run Steps:
|
|
=====================
|
|
1. Run LogManagement.exe /? for further instructions.
|
|
|
|
|