summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-27 09:08:50 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-27 09:08:50 +0100
commit06baadef15c8326bc5d5a2d300cdd44a9aea29d4 (patch)
tree48897440d0fbe326b854ce584765e21288d279a9 /src
parent8f9c232c3ba5bf17fc0790d80e96844fff5a9ca1 (diff)
downloadwolfbones-06baadef15c8326bc5d5a2d300cdd44a9aea29d4.tar.gz
wolfbones-06baadef15c8326bc5d5a2d300cdd44a9aea29d4.tar.bz2
fixed around the logger in the service, updated todo list of the logger
Diffstat (limited to 'src')
-rw-r--r--src/service/service.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/service/service.c b/src/service/service.c
index 5a44114..53abda7 100644
--- a/src/service/service.c
+++ b/src/service/service.c
@@ -262,11 +262,12 @@ void WINAPI wolf_service_main( DWORD argc, LPTSTR *argv ) {
char errbuf[512];
BOOL res;
- /* all other loggers make no sense: a service is not supposed
- * to have a logfile or interaction with the user in any way!
+ /* close all loggers but the logging to the event log. If the service runs
+ * with interactive right, it could open a console on the desktop (maybe this
+ * is something for debugging later?).
*/
- wolf_log_openlogtoeventlog( NULL, "Application", "testservice",
- "C:\\Temp\\testservicemsg.dll", WOLF_LAST_INTERNAL_CATEGORY+1, WOLF_LOG_DEBUG );
+ wolf_log_closelogtofile( );
+ wolf_log_closelogtostderr( );
/* register the event callback where we get called by the service
* manager and the system