- openlog( PACKAGE, LOG_CONS|LOG_PID, LOG_DAEMON );
- Log( LOG_NOTICE, PACKAGE" version "VERSION" started.");
+ CHAR txt[64];
+
+ strcpy( txt, "" );
+
+#ifdef USE_SYSLOG
+ if( txt[0] ) strcat( txt, "+" );
+ else strcat( txt, "-" );
+ strcat( txt, "SYSLOG" );
+#endif
+#ifdef STRICT_RFC
+ if( txt[0] ) strcat( txt, "+" );
+ else strcat( txt, "-" );
+ strcat( txt, "RFC" );
+#endif
+#ifdef DEBUG
+ if( txt[0] ) strcat( txt, "+" );
+ else strcat( txt, "-" );
+ strcat( txt, "DEBUG" );
+#endif
+#ifdef SNIFFER
+ if( txt[0] ) strcat( txt, "+" );
+ else strcat( txt, "-" );
+ strcat( txt, "SNIFFER" );
+#endif
+
+#ifdef USE_SYSLOG
+ openlog( PACKAGE, LOG_CONS|LOG_PID, LOG_LOCAL5 );
+#endif
+ Log( LOG_NOTICE, PACKAGE" version "VERSION"%s started.", txt );