diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-26 16:45:25 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-26 16:45:25 +0100 |
commit | cbc6aaca6dd7ac57a6115b3512a85045e51303dd (patch) | |
tree | 266097ae9558c6b16a8bd399d7dbcf85c4096e09 /tests/log | |
parent | 3395731667cfd707bfdfacf9b10abf67f7691ffd (diff) | |
download | wolfbones-cbc6aaca6dd7ac57a6115b3512a85045e51303dd.tar.gz wolfbones-cbc6aaca6dd7ac57a6115b3512a85045e51303dd.tar.bz2 |
started with service.c, now the messages in testservicemsg.dll are a mess..
Diffstat (limited to 'tests/log')
-rw-r--r-- | tests/log/test_log.c | 2 | ||||
-rw-r--r-- | tests/log/testmsg.mc | 28 |
2 files changed, 18 insertions, 12 deletions
diff --git a/tests/log/test_log.c b/tests/log/test_log.c index a1352d6..48f2c2e 100644 --- a/tests/log/test_log.c +++ b/tests/log/test_log.c @@ -37,7 +37,7 @@ int main( void ) { #endif #if defined WOLF_LOG_HAVE_EVENTLOG wolf_log_openlogtoeventlog( NULL, "Application", "wolf_log_test", - "C:\\Temp\\testmsg.dll", 3, WOLF_LOG_NOTICE ); + "C:\\Temp\\testmsg.dll", WOLF_LAST_INTERNAL_CATEGORY+1, WOLF_LOG_NOTICE ); #endif /* parameters and levels */ diff --git a/tests/log/testmsg.mc b/tests/log/testmsg.mc index 84be6ee..10bc408 100644 --- a/tests/log/testmsg.mc +++ b/tests/log/testmsg.mc @@ -17,18 +17,24 @@ LanguageNames = ( MessageId = 0x1 SymbolicName = WOLF_CATEGORY_1 Language = English -Category 1 +Logger . MessageId = 0x2 SymbolicName = WOLF_CATEGORY_2 Language = English -Category 2 +Daemon . MessageId = 0x3 SymbolicName = WOLF_CATEGORY_3 Language = English +Service +. + +MessageId = 0x4 +SymbolicName = WOLF_CATEGORY_3 +Language = English Test Category . @@ -52,7 +58,7 @@ FacilityNames = ( MessageIdTypedef = DWORD -MessageId = 3001 +MessageId = 4001 Severity = Error Facility = Application SymbolicName = WOLF_CATEGORY_TEST_LOG_MSG1 @@ -60,7 +66,7 @@ Language = English This is error %1 . -MessageId = 3002 +MessageId = 4002 Severity = Warning Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG2 @@ -68,7 +74,7 @@ Language = English Warning, this is just a test . -MessageId = 3003 +MessageId = 4003 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG3 @@ -76,7 +82,7 @@ Language = English Started the logger . -MessageId = 3004 +MessageId = 4004 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG4 @@ -84,7 +90,7 @@ Language = English This will not appear . -MessageId = 3005 +MessageId = 4005 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG5 @@ -92,7 +98,7 @@ Language = English Closed the logger . -MessageId = 3006 +MessageId = 4006 Severity = Error Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG6 @@ -100,7 +106,7 @@ Language = English This is error %1 with %2 . -MessageId = 3007 +MessageId = 4007 Severity = Error Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG7 @@ -108,7 +114,7 @@ Language = English A system error occured during %1 phase: %2 (%3) . -MessageId = 3008 +MessageId = 4008 Severity = Error Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG8 @@ -116,7 +122,7 @@ Language = English A Windows error occured during %1 phase: %2 (%3) . -MessageId = 3009 +MessageId = 4009 Severity = Error Facility = Application SymbolicName = WOLF_MSG_TEST_LOG_MSG9 |