Skip to content

Commit dc957a2

Browse files
committed
.
1 parent 145bbbd commit dc957a2

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

crates/sysevent-syslog/README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@
33
Syslog backend for system-wide critical event logging.
44

55
This crate provides Unix/Linux syslog implementation using standard libc calls.
6-
Features synchronous emission with proper resource lifetime management.
76

87
## Platform Requirements
8+
99
- Unix/Linux systems with syslog facilities
1010
- Standard C library with openlog/syslog/closelog functions
1111
- Thread-safe operation across concurrent emission calls
1212

13-
## Resource Management
14-
- `openlog()` called once during construction
15-
- `ident` string kept alive for syslog daemon
16-
- `closelog()` called automatically on drop
17-
- Thread-safe sharing of syslog connection
18-
1913
## Examples
2014

2115
```rust,no_run

crates/sysevent-winevent/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
Windows Event Log backend for system-wide critical event logging.
44

55
This crate provides Windows Event Log implementation using Win32 APIs.
6-
Features synchronous emission with proper UTF-16 conversion and handle management.
76

87
## Platform Requirements
8+
99
- Windows systems with Event Log service
1010
- Appropriate permissions to write to event log
1111
- Event source registration in Windows Registry (recommended)
1212

13-
## Resource Management
14-
- `RegisterEventSourceW()` creates handle during construction
15-
- Handle kept alive for event reporting lifetime
16-
- `DeregisterEventSource()` called automatically on drop
17-
- Thread-safe sharing of event source handle
18-
1913
## Event Source Registration
14+
2015
For proper operation, register the event source in the Registry:
2116
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\{SourceName}`
2217

package/WindowsManaged/Program.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,18 @@ static void Main()
353353
AttributesDefinition = "Type=string; Component:Permanent=yes",
354354
Win64 = project.Platform == Platform.x64,
355355
RegistryKeyAction = RegistryKeyAction.create,
356+
},
357+
new (RegistryHive.LocalMachine, $"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\{Includes.PRODUCT_NAME}", "EventMessageFile", $"[{GatewayProperties.InstallDir}]{Includes.EXECUTABLE_NAME}")
358+
{
359+
AttributesDefinition = "Type=string",
360+
Win64 = project.Platform == Platform.x64,
361+
RegistryKeyAction = RegistryKeyAction.create,
362+
},
363+
new (RegistryHive.LocalMachine, $"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\{Includes.PRODUCT_NAME}", "TypesSupported", 7)
364+
{
365+
AttributesDefinition = "Type=integer",
366+
Win64 = project.Platform == Platform.x64,
367+
RegistryKeyAction = RegistryKeyAction.create,
356368
}
357369
};
358370
project.Properties = GatewayProperties.Properties.Select(x => x.ToWixSharpProperty()).ToArray();

0 commit comments

Comments
 (0)