delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/26/01:32:46

From: dsharma AT swi DOT com (Dushyant Sharma)
Subject: syslog call->where is it logged on Win-NT
26 Sep 1998 01:32:46 -0700 :
Message-ID: <19980925203244.607.qmail.cygnus.gnu-win32@findmail.com>
To: gnu-win32 AT cygnus DOT com
Cc: dsharma AT swi DOT com

Here is the code snippet using syslog call. Where
are the logs strored?? Can they be seen by 
Event Viewer. 
Thanks for your response,
Dushyant Sharma
#include <syslog.h>
int main ( )
{	char *application = "??????";
	openlog( application, 0, LOG_USER );
        syslog( LOG_EMERG, "Test this thang00" );
        syslog( LOG_EMERG, "Test this thang11" );
        syslog( LOG_EMERG, "Test this thang22" );
	closelog();
	return 0;
}

-----
Free e-mail group hosting at http://www.eGroups.com/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019