diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-21 16:12:18 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-21 16:12:18 +0100 |
commit | 59b71b097974c78e9cabb43e4e5fc498326b1ece (patch) | |
tree | ac58c2dc65a9c6bfe13aed3924a315fd1527639e /src/log | |
parent | f9052d112f45825bc3ed11326dd3be63a8042333 (diff) | |
download | wolfbones-59b71b097974c78e9cabb43e4e5fc498326b1ece.tar.gz wolfbones-59b71b097974c78e9cabb43e4e5fc498326b1ece.tar.bz2 |
generating mono-lingual MC file now
Diffstat (limited to 'src/log')
-rwxr-xr-x | src/log/create_wolfmsg.pl | 15 | ||||
-rw-r--r-- | src/log/wolfmsg.mc | 353 |
2 files changed, 89 insertions, 279 deletions
diff --git a/src/log/create_wolfmsg.pl b/src/log/create_wolfmsg.pl index c31b9df..cbf3f7f 100755 --- a/src/log/create_wolfmsg.pl +++ b/src/log/create_wolfmsg.pl @@ -91,7 +91,6 @@ for( ;; ) { $expanded_code =~ /wolf_log\s*\(([^\;]*)/s; my $expanded_func = $1; $expanded_code = $'; -print $expanded_func . "\n"; if( $func =~ /\s*(WOLF_LOG_[^\, ]+)\s*\,\s*(WOLF_CATEGORY_[^\, ]+)\s*\,\s*(WOLF_MSG_[^\, ]+)\s*\,\s*_\(\s*"([^"]*)/ ) { my $level = $1; @@ -99,10 +98,12 @@ print $expanded_func . "\n"; my $messageid = $3; my $formatstr_c = $4; + # map C snprintf format to positional format my $formatstr_win = $formatstr_c; my $pos = 1; while( $formatstr_win =~ s/%[sd]/%${pos}/ ) { $pos++ }; + # map the Wolf levels to windows event log severity levels my $severity; if( $level =~ /WOLF_LOG_((EMERG)|(ALERT)|(CRIT)|(ERR))/ ) { $severity = "Error"; @@ -111,14 +112,22 @@ print $expanded_func . "\n"; } else { $severity = "Information"; } - + + # fetch expanded message id from the CPP output + my $messageid_number; + if( $expanded_func =~ /\s*(WOLF_LOG_[^\, ]+)\,\s*([^\,]+)\,\s*([^\,]+)/ ) { + my $expanded_messageid = $3; + $messageid_number = eval $expanded_messageid; + } + print <<EOF; -MessageId = ??? +MessageId = $messageid_number Severity = $severity Facility = Application SymbolicName = $messageid EOF + # print all translations found in gettext .po files my @langs = ( "English", "German" ); my $lang; foreach $lang ( @langs ) { diff --git a/src/log/wolfmsg.mc b/src/log/wolfmsg.mc index 89a31b6..0a402da 100644 --- a/src/log/wolfmsg.mc +++ b/src/log/wolfmsg.mc @@ -53,741 +53,542 @@ FacilityNames = ( MessageIdTypedef = DWORD - wolf_log_level_t level, int category_id, int message_id, const char *format, ... ) -MessageId = ??? +MessageId = Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CLOSE_FD Language = English Error while closing file descriptor %1: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +29, - ( (const char *)( "Error while closing file descriptor %d: %s" ) ), - fd, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2029 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_RETRIEVING_MAXNOFFDS_FAILED Language = English Unable to retrieve maximal number of files: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +30, - ( (const char *)( "Unable to retrieve maximal number of files: %s" ) ), - strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2030 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_CLOSING_ALL_FDS Language = English Closing all filedescriptors up to %ld . - WOLF_LOG_DEBUG, 2, 2 * 1000 +31, - ( (const char *)( "Closing all filedescriptors up to %ld" ) ), nof_files ) -MessageId = ??? +MessageId = 2031 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_FD_AS_DEV_NULL Language = English Unable to open fd %1 as /dev/null: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +32, - ( (const char *)( "Unable to open fd %d as /dev/null: %s" ) ), - must_fd, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2032 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FD_NUMBERS_WRONG Language = English Something is wrong with the file descriptors (expecting %1, got %2)! . - WOLF_LOG_EMERG, 2, 2 * 1000 +33, - ( (const char *)( "Something is wrong with the file descriptors (expecting %d, got %d)!" ) ), - must_fd, fd ) -MessageId = ??? +MessageId = 2033 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_WRITE_FAILED Language = English Error in atomar write to fd %1: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +34, - ( (const char *)( "Error in atomar write to fd %d: %s" ) ), - fd, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2034 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_WRITE_WRONG_OCTETS Language = English Unexpected number of octets %zd in atomar write to fd %1 (expected %zd) . - WOLF_LOG_EMERG, 2, 2 * 1000 +35, - ( (const char *)( "Unexpected number of octets %zd in atomar write to fd %d (expected %zd)" ) ), - res, fd, data_len ) -MessageId = ??? +MessageId = 2035 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_READ_FAILED Language = English Error in atmoar read from fd %1: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +36, - ( (const char *)( "Error in atmoar read from fd %d: %s" ) ), - fd, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2036 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_READ_WRONG_OCTETS Language = English Unexpected number of octets %zd in atomar read from fd %1 (expected %zd) . - WOLF_LOG_EMERG, 2, 2 * 1000 +37, - ( (const char *)( "Unexpected number of octets %zd in atomar read from fd %d (expected %zd)" ) ), - res, fd, data_len ) -MessageId = ??? +MessageId = 2037 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_ALREADY_RUNNING Language = English Already running as daemon! . - WOLF_LOG_EMERG, 2, 2 * 1000 +38, - ( (const char *)( "Already running as daemon!" ) ) ) -MessageId = ??? +MessageId = 2038 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_START_AS_NON_ROOT Language = English Unable to start daemon as not root user! . - WOLF_LOG_EMERG, 2, 2 * 1000 +39, - ( (const char *)( "Unable to start daemon as not root user!" ) ) ) -MessageId = ??? +MessageId = 2039 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_EXIT_CODE_PIPE Language = English Unable to create exit code pipe: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +40, - ( (const char *)( "Unable to create exit code pipe: %s" ) ), - strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2040 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_EXIT_CODE_PIPE_CREATED Language = English Created exit code pipe (%1,%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +41, - ( (const char *)( "Created exit code pipe (%d,%d)" ) ), exit_code_pipe[0], exit_code_pipe[1] ) -MessageId = ??? +MessageId = 2041 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FIRST_FORK_FAILED Language = English Unable to fork the first time: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +42, - ( (const char *)( "Unable to fork the first time: %s" ) ), strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2042 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_FIRST_FORK_REACHED Language = English First fork reached . - WOLF_LOG_DEBUG, 2, 2 * 1000 +43, - ( (const char *)( "First fork reached" ) ) ) -MessageId = ??? +MessageId = 2043 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_AFTER_FIRST_FORK Language = English Parent after first fork: child is %1 . - WOLF_LOG_DEBUG, 2, 2 * 1000 +44, - ( (const char *)( "Parent after first fork: child is %d" ) ), pid ) -MessageId = ??? +MessageId = 2044 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_PARENT_PIPE Language = English Unable to create parent pipe: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +45, - ( (const char *)( "Unable to create parent pipe: %s" ) ), - strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2045 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_PIPE_CREATED Language = English Created parent pipe (%1,%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +46, - ( (const char *)( "Created parent pipe (%d,%d)" ) ), daemon_parent_pipe[0], daemon_parent_pipe[1] ) -MessageId = ??? +MessageId = 2046 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_SET_NEW_PROCESS_GROUP Language = English Starting new process group session for the parent of the daemon failed: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +47, - ( (const char *)( "Starting new process group session for the parent of the daemon failed: %s" ) ), strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2047 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SECOND_FORK_FAILED Language = English Unable to fork the second time: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +48, - ( (const char *)( "Unable to fork the second time: %s" ) ), strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2048 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_SECOND_FORK_REACHED Language = English Second fork reached . - WOLF_LOG_DEBUG, 2, 2 * 1000 +49, - ( (const char *)( "Second fork reached" ) ) ) -MessageId = ??? +MessageId = 2049 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_AFTER_SECOND_FORK Language = English Parent after second fork: child (and daemon) is %1 . - WOLF_LOG_DEBUG, 2, 2 * 1000 +50, - ( (const char *)( "Parent after second fork: child (and daemon) is %d" ) ), pid ) -MessageId = ??? +MessageId = 2050 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_SET_NEW_PROCESS_GROUP Language = English Starting new process group for daemon session failed: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +47, - ( (const char *)( "Starting new process group for daemon session failed: %s" ) ), strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2047 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CHANGE_ROOT_DIR Language = English Changing to root diretory failed: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +51, - ( (const char *)( "Changing to root diretory failed: %s" ) ), strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2051 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_CHANGED_ROOT_DIR Language = English Changed to root directory / . - WOLF_LOG_DEBUG, 2, 2 * 1000 +52, - ( (const char *)( "Changed to root directory /" ) ) ) -MessageId = ??? +MessageId = 2052 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_UMASK Language = English Switched umask from %04o to %04o . - WOLF_LOG_DEBUG, 2, 2 * 1000 +53, - ( (const char *)( "Switched umask from %04o to %04o" ) ), mode, 0133 ) -MessageId = ??? +MessageId = 2053 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_DAEMON_ALREADY_RUNNING_WITH_PID Language = English Another daemon is already running with pid '%1', can't start! . - WOLF_LOG_EMERG, 2, 2 * 1000 +54, - ( (const char *)( "Another daemon is already running with pid '%d', can't start!" ) ), pid ) -MessageId = ??? +MessageId = 2054 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_UMASK_FINAL Language = English Switched umask from %04o to %04o . - WOLF_LOG_DEBUG, 2, 2 * 1000 +55, - ( (const char *)( "Switched umask from %04o to %04o" ) ), mode, 0137 ) -MessageId = ??? +MessageId = 2055 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GROUP_NOT_FOUND Language = English No group '%1' found . - WOLF_LOG_EMERG, 2, 2 * 1000 +56, - ( (const char *)( "No group '%s' found" ) ), d->params.group_name ) -MessageId = ??? +MessageId = 2056 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GETGRNAM_FAILED Language = English Unable to retrieve group information for group '%1': %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +57, - ( (const char *)( "Unable to retrieve group information for group '%s': %s" ) ), - d->params.group_name, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2057 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_USER_NOT_FOUND Language = English No user '%1' found . - WOLF_LOG_EMERG, 2, 2 * 1000 +58, - ( (const char *)( "No user '%s' found" ) ), d->params.user_name ) -MessageId = ??? +MessageId = 2058 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GETPWNAM_FAILED Language = English Unable to retrieve user information for user '%1': %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +59, - ( (const char *)( "Unable to retrieve user information for user '%s': %s" ) ), - d->params.user_name, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2059 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SETTING_UNPRIVILEGED_GROUP_FAILED Language = English Setting unprivileged group failed: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +60, - ( (const char *)( "Setting unprivileged group failed: %s" ) ), - strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2060 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SETTING_UNPRIVILEGED_USER_FAILED Language = English Setting unprivileged user failed: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +61, - ( (const char *)( "Setting unprivileged user failed: %s" ) ), - strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2061 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_USER Language = English Switched to user '%1' (%2) and group '%3' (%4) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +62, - ( (const char *)( "Switched to user '%s' (%d) and group '%s' (%d)" ) ), - d->params.user_name, d->userent->pw_uid, - d->params.group_name, d->userent->pw_gid ) -MessageId = ??? +MessageId = 2062 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_EXIT_CALLED Language = English daemon_exit called int state %1 (error %2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +63, - ( (const char *)( "daemon_exit called int state %d (error %d)" ) ), - d->state, d->error ) -MessageId = ??? +MessageId = 2063 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_WAITING_FOR_EXIT_CODE_ON_PIPE Language = English Waiting on exit_code pipe for exit code . - WOLF_LOG_DEBUG, 2, 2 * 1000 +64, - ( (const char *)( "Waiting on exit_code pipe for exit code" ) ) ) -MessageId = ??? +MessageId = 2064 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_GRAND_PARENT Language = English Terminating grand-parent of daemon with code %1 (PID: %lu) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +65, - ( (const char *)( "Terminating grand-parent of daemon with code %d (PID: %lu)" ) ), - exit_code, getpid( ) ) -MessageId = ??? +MessageId = 2065 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_WAITING_FOR_TERMINATION Language = English Waiting on parent pipe for termination signal . - WOLF_LOG_DEBUG, 2, 2 * 1000 +66, - ( (const char *)( "Waiting on parent pipe for termination signal" ) ) ) -MessageId = ??? +MessageId = 2066 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_GOT_TERMINATION Language = English Parent got termination (pidfile lock: %1, run: %2, fd: %3).. cleaning up now (PID: %lu) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +67, - ( (const char *)( "Parent got termination (pidfile lock: %d, run: %d, fd: %d).. cleaning up now (PID: %lu)" ) ), - d->pidfile.locked, d->pidfile.running, d->pidfile.fd, getpid( ) ) -MessageId = ??? +MessageId = 2067 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_PARENT Language = English Terminating parent of daemon (PID %lu) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +68, - ( (const char *)( "Terminating parent of daemon (PID %lu)" ) ), getpid( ) ) -MessageId = ??? +MessageId = 2068 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_DAEMON_OK Language = English Terminating daemon (PID: %lu) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +69, - ( (const char *)( "Terminating daemon (PID: %lu)" ) ), getpid( ) ) -MessageId = ??? +MessageId = 2069 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_DAEMON_ERROR Language = English Terminating daemon (PID: %lu) with error . - WOLF_LOG_DEBUG, 2, 2 * 1000 +70, - ( (const char *)( "Terminating daemon (PID: %lu) with error" ) ), getpid( ) ) -MessageId = ??? +MessageId = 2070 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_SIGNAL_PIPE Language = English Unable to create signal pipe: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +71, - ( (const char *)( "Unable to create signal pipe: %s" ) ), errbuf ) -MessageId = ??? +MessageId = 2071 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_SIGNAL_PIPE_CREATED Language = English Created signal pipe (%1,%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +72, - ( (const char *)( "Created signal pipe (%d,%d)" ) ), daemon_signal_pipe[0], daemon_signal_pipe[1] ) -MessageId = ??? +MessageId = 2072 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SELECT_FAILED_WAITING_FOR_SIGNAL Language = English Error in select when waiting for signal from pipe: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +73, - ( (const char *)( "Error in select when waiting for signal from pipe: %s" ) ), - errbuf ) -MessageId = ??? +MessageId = 2073 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_READ_SIGNAL_FROM_PIPE Language = English Error while reading a signal from the pipe: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +74, - ( (const char *)( "Error while reading a signal from the pipe: %s" ) ), - errbuf ) -MessageId = ??? +MessageId = 2074 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_NON_ATOMIC_READ_ON_SIGNAL_PIPE Language = English Unexpected error in read: result is %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +75, - ( (const char *)( "Unexpected error in read: result is %d" ) ), res ) -MessageId = ??? +MessageId = 2075 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_NO_PIDFILE Language = English No pidfile '%1' found, daemon is not running . - WOLF_LOG_DEBUG, 2, 2 * 1000 +8, - ( (const char *)( "No pidfile '%s' found, daemon is not running" ) ), pidfile->filename ) -MessageId = ??? +MessageId = 2008 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_PIDFILE Language = English Unable to open pidfile '%1' for reading: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +9, - ( (const char *)( "Unable to open pidfile '%s' for reading: %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2009 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_ANOTHER_IS_RUNNING Language = English Another process locks the pidfile, daemon already running . - WOLF_LOG_DEBUG, 2, 2 * 1000 +10, - ( (const char *)( "Another process locks the pidfile, daemon already running" ) ) ) -MessageId = ??? +MessageId = 2010 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_LOCK_PIDFILE Language = English Unable to lock pidfile '%1': %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +11, - ( (const char *)( "Unable to lock pidfile '%s': %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2011 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_READ_PID_FROM_PIDFILE Language = English Unable to read pid from pidfile '%1': %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +12, - ( (const char *)( "Unable to read pid from pidfile '%s': %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2012 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIDFILE_WITH_ILLEGAL_DATA Language = English pidfile '%1' contains invalid data, can't read PID from it! . - WOLF_LOG_EMERG, 2, 2 * 1000 +13, - ( (const char *)( "pidfile '%s' contains invalid data, can't read PID from it!" ) ), pidfile->filename ) -MessageId = ??? +MessageId = 2013 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_FOUND_PID_IN_PIDFILE Language = English Found PID '%lu' in pidfile . - WOLF_LOG_DEBUG, 2, 2 * 1000 +14, - ( (const char *)( "Found PID '%lu' in pidfile" ) ), *pid ) -MessageId = ??? +MessageId = 2014 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FOUND_PID_BUT_NO_PROCESS_RUNNING Language = English Found PID '%lu' in pidfile '%1', but no such process is running. Check and manually delete the pidfile! . - WOLF_LOG_EMERG, 2, 2 * 1000 +15, - ( (const char *)( "Found PID '%lu' in pidfile '%s', but no such process is running. Check and manually delete the pidfile!" ) ), *pid, pidfile->filename ) -MessageId = ??? +MessageId = 2015 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PROCESS_ALIVE_CHECK_FAILED Language = English Can't check if process with PID '%lu' is alive: %1 . - WOLF_LOG_EMERG, 2, 2 * 1000 +16, - ( (const char *)( "Can't check if process with PID '%lu' is alive: %s" ) ), *pid, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2016 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_ALREADY_RUNNING_WITH_PID Language = English A process with PID '%lu' is already running . - WOLF_LOG_DEBUG, 2, 2 * 1000 +17, - ( (const char *)( "A process with PID '%lu' is already running" ) ), *pid ) -MessageId = ??? +MessageId = 2017 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_PIDFILE Language = English Unable to open pidfile '%1' for writing: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +9, - ( (const char *)( "Unable to open pidfile '%s' for writing: %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2009 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIDFILE_IN_USE Language = English Unable to lock pidfile '%1' after creation, daemon started in parallel? . - WOLF_LOG_EMERG, 2, 2 * 1000 +18, - ( (const char *)( "Unable to lock pidfile '%s' after creation, daemon started in parallel?" ) ), pidfile->filename ) -MessageId = ??? +MessageId = 2018 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_LOCK_PIDFILE_AFTER_CREATION Language = English Unable to lock pidfile '%1' after creation: %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +19, - ( (const char *)( "Unable to lock pidfile '%s' after creation: %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2019 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_TRUNCATE_PIDFILE Language = English Unable to truncate the pidfile '%1' before writing to it . - WOLF_LOG_EMERG, 2, 2 * 1000 +20, - ( (const char *)( "Unable to truncate the pidfile '%s' before writing to it" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2020 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_WRITE_PID_INTO_PIDFILE Language = English Unable to write PID into the pidfile '%1': %2 . - WOLF_LOG_EMERG, 2, 2 * 1000 +21, - ( (const char *)( "Unable to write PID into the pidfile '%s': %s" ) ), pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2021 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_ATOMIC_PIDFILE_WRITE_FAILED Language = English Non-atomic write failed when storing the PID into the pidfile '%1' . - WOLF_LOG_EMERG, 2, 2 * 1000 +22, - ( (const char *)( "Non-atomic write failed when storing the PID into the pidfile '%s'" ) ), pidfile->filename ) -MessageId = ??? +MessageId = 2022 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_STORED_PIDFILE Language = English Stored '%lu' into the pidfile '%1' and locked it . - WOLF_LOG_DEBUG, 2, 2 * 1000 +23, - ( (const char *)( "Stored '%lu' into the pidfile '%s' and locked it" ) ), (unsigned long)getpid( ), pidfile->filename ) -MessageId = ??? +MessageId = 2023 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_RELEASING_PIDFILE Language = English Releasing (unlocking/closing) pidfile '%1' (fd: %2, locked: %3) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +24, - ( (const char *)( "Releasing (unlocking/closing) pidfile '%s' (fd: %d, locked: %d)" ) ), - pidfile->filename, pidfile->fd, pidfile->locked ) -MessageId = ??? +MessageId = 2024 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_UNLOCK_PIDFILE Language = English Unable to unlock the pidfile '%1': %2 . - WOLF_LOG_ALERT, 2, 2 * 1000 +25, - ( (const char *)( "Unable to unlock the pidfile '%s': %s" ) ), - pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2025 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CLOSE_PIDFILE Language = English Unable to close the pidfile '%1': %2 . - WOLF_LOG_ALERT, 2, 2 * 1000 +26, - ( (const char *)( "Unable to close the pidfile '%s': %s" ) ), - pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2026 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_REMOVING_PIDFILE Language = English Removing pidfile '%1' (fd: %2, locked: %3, running: %4) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +27, - ( (const char *)( "Removing pidfile '%s' (fd: %d, locked: %d, running: %d)" ) ), - pidfile->filename, pidfile->fd, pidfile->locked, pidfile->running ) -MessageId = ??? +MessageId = 2027 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_REMOVE_PIDFILE Language = English Unable to remove the pidfile '%1': %2 . - WOLF_LOG_ALERT, 2, 2 * 1000 +28, - ( (const char *)( "Unable to remove the pidfile '%s': %s" ) ), - pidfile->filename, strerror( (*__errno_location ()) ) ) -MessageId = ??? +MessageId = 2028 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_IGNORE_SIGNAL Language = English Can't ignore signal handler for signal '%1' (%2): %3 . - WOLF_LOG_CRIT, 2, 2 * 1000 +1, - ( (const char *)( "Can't ignore signal handler for signal '%s' (%s): %s" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ), - sig, - errbuf ) -MessageId = ??? +MessageId = 2001 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_IGNORE_SIGNAL Language = English Ignoring signal handler for signal '%1' (%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +2, - ( (const char *)( "Ignoring signal handler for signal '%s' (%s)" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ) ) -MessageId = ??? +MessageId = 2002 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_CRITICAL_SIGNAL Language = English Can't install empty signal handler for signal '%1' (%2): %3 . - WOLF_LOG_CRIT, 2, 2 * 1000 +3, - ( (const char *)( "Can't install empty signal handler for signal '%s' (%s): %s" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ), - errbuf ) -MessageId = ??? +MessageId = 2003 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_CRITICAL_SIGNAL Language = English Installed empty signal handler for signal '%1' (%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +4, - ( (const char *)( "Installed empty signal handler for signal '%s' (%s)" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ) ) -MessageId = ??? +MessageId = 2004 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GOT_SIGNAL Language = English Got signal '%1' (%2) . - WOLF_LOG_ALERT, 2, 2 * 1000 +5, - ( (const char *)( "Got signal '%s' (%s)" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ) ) -MessageId = ??? +MessageId = 2005 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_FUNC_SIGNAL Language = English Can't install signal handler for signal '%1' (%2): %3 . - WOLF_LOG_CRIT, 2, 2 * 1000 +6, - ( (const char *)( "Can't install signal handler for signal '%s' (%s): %s" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ), - errbuf ) -MessageId = ??? +MessageId = 2006 Severity = Information Facility = Application SymbolicName = WOLF_MSG_DAEMON_FUNC_SIGNAL Language = English Installed signal handler for signal '%1' (%2) . - WOLF_LOG_DEBUG, 2, 2 * 1000 +7, - ( (const char *)( "Installed signal handler for signal '%s' (%s)" ) ), - wolf_signal_get_long_name( sig ), - wolf_signal_get_short_name( sig ) ) |