diff common/events.mc @ 620:bc02ee484067

Add dummy logging with ressourced messages. The hack in icon.rc is necessary as with mingw 3.0 there appears to be a problem to include multiple resources after another. The data is included but the sections are not detected correctly in windows. Combining them in a single resource fixes this.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 19 Jun 2014 17:48:10 +0200
parents 63a128400bf3
children c0f988e3df9f
line wrap: on
line diff
--- a/common/events.mc	Thu Jun 19 17:45:06 2014 +0200
+++ b/common/events.mc	Thu Jun 19 17:48:10 2014 +0200
@@ -5,7 +5,6 @@
 ; and comes with ABSOLUTELY NO WARRANTY!
 ; See LICENSE.txt for details. */
 
-MessageIdTypedef=DWORD
 
 SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
 Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
@@ -13,18 +12,66 @@
 Error=0x3:STATUS_SEVERITY_ERROR
 )
 
+FacilityNames=(System=0x0:FACILITY_SYSTEM
+               Runtime=0x2:FACILITY_RUNTIME
+               Stubs=0x3:FACILITY_STUBS
+               Io=0x4:FACILITY_IO_ERROR_CODE
+              )
+
 LanguageNames=(English=0x409:MSG00409)
 LanguageNames=(German=0x407:MSG00407)
 
-;/* THE MESSAGES */
+MessageIdTypedef=WORD
 
 MessageId=0x1
+SymbolicName=EVENT_CAT_TB
+Language=English
+Trustbridge
+.
+Language=German
+Trustbridge
+.
+
+MessageId=0x2
+SymbolicName=EVENT_CAT_CINST
+Language=English
+Certificate Installer2
+.
+Language=German
+Zertifikatsinstaller
+.
+
+
+MessageId=0x3
+SymbolicName=EVENT_CAT_NSS
+Language=English
+NSS
+.
+Language=German
+NSS
+.
+;/* THE MESSAGES */
+
+MessageIdTypedef=DWORD
+
+MessageId=0x100
 Severity=Informational
-Facility=Application
+Facility=Runtime
 SymbolicName=MSG_DEFAULT_INFO
 Language=English
-Test %0 blub
+Test blub
 .
 Language=German
 Schlaand Schlaand %0 blubs
 .
+
+MessageId=0x101
+Severity=Error
+Facility=Runtime
+SymbolicName=MSG_DEFAULT_ERROR
+Language=English
+Test Error  blub
+.
+Language=German
+Schlaand Schlaand %0 ERROR  blubs
+.

http://wald.intevation.org/projects/trustbridge/