[cpp-sp] 03/03: CPPSP-22 Pull in Windows event log DLL from log4shib
Rod Widdowson
rdw at steadingsoftware.com
Sat Oct 18 14:16:42 UTC 2025
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=08220aa06eefe213b4d5c22f58f63a676dd13411
commit 08220aa06eefe213b4d5c22f58f63a676dd13411
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Oct 18 15:14:23 2025 +0100
CPPSP-22 Pull in Windows event log DLL from log4shib
https://shibboleth.atlassian.net/browse/CPPSP-22
Minor cosmetic (and probably needless) change to the message file.
Add a comment to the Wi dows Logging Service about how to install.
---
shibsp/logging/impl/NativeEventLog.mc | 18 +++++++++---------
shibsp/logging/impl/WindowsLoggingService.cpp | 12 ++++++++++++
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/shibsp/logging/impl/NativeEventLog.mc b/shibsp/logging/impl/NativeEventLog.mc
index 0e7ee26f..3d0ef8db 100644
--- a/shibsp/logging/impl/NativeEventLog.mc
+++ b/shibsp/logging/impl/NativeEventLog.mc
@@ -7,60 +7,60 @@ Language=English
CRITICAL [%1] : [%2]
.
-MessageId=+1
+MessageId=0x2
SymbolicName=SHIBSP_LOG_ERROR
Language=English
Error [%1] : [%2]
.
-MessageId=+1
+MessageId=0x3
Severity=Warning
SymbolicName=SHIBSP_LOG_WARN
Language=English
Warn [%1] : [%2]
.
-MessageId=+1
+MessageId=0x4
Severity=Informational
SymbolicName=SHIBSP_LOG_INFO
Language=English
Info [%1] : [%2]
.
-MessageId=+1
+MessageId=0x5
Severity=Success
SymbolicName=SHIBSP_LOG_DEBUG
Language=English
Debug [%1] : [%2]
.
-MessageId=+1
+MessageId=0x6
SymbolicName=SHIBSP_CATEGORY_CRIT
Language=English
CRITICAL Category
.
-MessageId=+1
+MessageId=0x7
SymbolicName=SHIBSP_CATEGORY_ERROR
Language=English
Error Category
.
-MessageId=+1
+MessageId=0x8
Severity=Warning
SymbolicName=SHIBSP_CATEGORY_WARN
Language=English
Warn Category
.
-MessageId=+1
+MessageId=0x9
Severity=Informational
SymbolicName=SHIBSP_CATEGORY_INFO
Language=English
Info Category
.
-MessageId=+1
+MessageId=0x10
Severity=Success
SymbolicName=SHIBSP_CATEGORY_DEBUG
Language=English
diff --git a/shibsp/logging/impl/WindowsLoggingService.cpp b/shibsp/logging/impl/WindowsLoggingService.cpp
index 0dc5cfe6..38856985 100644
--- a/shibsp/logging/impl/WindowsLoggingService.cpp
+++ b/shibsp/logging/impl/WindowsLoggingService.cpp
@@ -128,3 +128,15 @@ void WindowsLoggingService::outputMessage(const Category& category, Priority::Va
::ReportEventA(m_EventSource, EventTypeFor(priority), EventCategoryFor(priority), EventIdFor(priority), NULL, 2, 0, msgs, NULL);
}
+/*
+ This is the registry setting we need
+
+ <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\ShibbolethSPAgent">
+ <RegistryValue Name="CategoryCount" Type="integer" Value="8" />
+ <RegistryValue Name="TypesSupported" Type="integer" Value="7" />
+ <RegistryValue Name="CategoryMessageFile" Type="string" Value="PATH\TO\NativeLogMessages.dll" />
+ <RegistryValue Name="EventMessageFile" Type="string" Value="PATH\TO\NativeLogMessages.dll" />
+ </RegistryKey>
+ </Component>
+
+*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list