-#ifdef SYSLOG
- /* Syslog initialisieren */
- openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
-#endif
-
- /* Hello World! */
- Log( LOG_NOTICE, "%s started.", NGIRCd_Version( ));
-
- /* Informationen uebern den "Operation Mode" */
- strcpy( Init_Txt, "" );
-#ifdef DEBUG
- if( NGIRCd_Debug )
- {
- if( Init_Txt[0] ) strcat( Init_Txt, ", " );
- strcat( Init_Txt, "debug-mode" );
- }
-#endif
- if( NGIRCd_NoDaemon )
- {
- if( Init_Txt[0] ) strcat( Init_Txt, ", " );
- strcat( Init_Txt, "no-daemon-mode" );
- }
- if( NGIRCd_Passive )
- {
- if( Init_Txt[0] ) strcat( Init_Txt, ", " );
- strcat( Init_Txt, "passive-mode" );
+ if (!Is_Daemon) {
+ /* log to console */
+ fprintf(stdout, "[%ld:%d %4ld] %s\n", (long)getpid(), Level,
+ (long)time(NULL) - NGIRCd_Start, msg);
+ fflush(stdout);