summaryrefslogtreecommitdiff
path: root/src/log
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-21 15:52:39 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-21 15:52:39 +0100
commitf9052d112f45825bc3ed11326dd3be63a8042333 (patch)
tree38c149baccc6a560ac99ce30ea07b38bf1cf4ba7 /src/log
parent70f67347bdb0d748879eb5d99199a380c445b236 (diff)
downloadwolfbones-f9052d112f45825bc3ed11326dd3be63a8042333.tar.gz
wolfbones-f9052d112f45825bc3ed11326dd3be63a8042333.tar.bz2
started to generate the MC file with the perl script
Diffstat (limited to 'src/log')
-rwxr-xr-xsrc/log/create_wolfmsg.pl88
-rw-r--r--src/log/wolfmsg.mc740
2 files changed, 804 insertions, 24 deletions
diff --git a/src/log/create_wolfmsg.pl b/src/log/create_wolfmsg.pl
index 0beb3fb..c31b9df 100755
--- a/src/log/create_wolfmsg.pl
+++ b/src/log/create_wolfmsg.pl
@@ -72,25 +72,85 @@ MessageIdTypedef = DWORD
EOF
undef $/;
+
open CONTENT, "find .. -name '*.c' -exec cat {} \\; |";
my $code = <CONTENT>;
close CONTENT;
-print <<EOF;
-MessageId = 0x100
-Severity = Error
-Facility = Application
-SymbolicName = WOLF_TEST_NO_PARAMS
-Language = English
-This is a test message without any parameters
-It can be two lines though
-.
+open CONTENT, "find .. -name '*.c' -exec cat {} \\; | cpp -I../../include/wolf |";
+my $expanded_code = <CONTENT>;
+close CONTENT;
-MessageId = 0x101
-Severity = Error
+for( ;; ) {
+ if( !( $code =~ /wolf_log\s*\(([^\;]*)/s ) ) {
+ last;
+ }
+ my $func = $1;
+ $code = $';
+
+ $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;
+ my $category = $2;
+ my $messageid = $3;
+ my $formatstr_c = $4;
+
+ my $formatstr_win = $formatstr_c;
+ my $pos = 1;
+ while( $formatstr_win =~ s/%[sd]/%${pos}/ ) { $pos++ };
+
+ my $severity;
+ if( $level =~ /WOLF_LOG_((EMERG)|(ALERT)|(CRIT)|(ERR))/ ) {
+ $severity = "Error";
+ } elsif( $level eq " WOLF_LOG_WARNING" ) {
+ $severity = "Warning";
+ } else {
+ $severity = "Information";
+ }
+
+ print <<EOF;
+MessageId = ???
+Severity = $severity
Facility = Application
-SymbolicName = WOLF_TEST_PARAMS
-Language = English
-This is a message with parameter %1 and parameter %2
+SymbolicName = $messageid
+EOF
+
+ my @langs = ( "English", "German" );
+ my $lang;
+ foreach $lang ( @langs ) {
+ if( $lang eq "English" ) {
+ print <<EOF;
+Language = $lang
+$formatstr_win
.
EOF
+ }
+ }
+ }
+# WOLF_LOG_EMERG, WOLF_CATEGORY_DAEMON, WOLF_MSG_DAEMON_PIPE_ATOMIC_WRITE_WRONG_OCTETS,
+# _( "Unexpected number of octets %zd in atomar write to fd %d (expected %zd)" ),
+# res, fd, data_len )
+
+}
+
+#MessageId = 0x100
+#Severity = Error
+#Facility = Application
+#SymbolicName = WOLF_TEST_NO_PARAMS
+#Language = English
+#This is a test message without any parameters
+#It can be two lines though
+#.
+
+#MessageId = 0x101
+#Severity = Error
+#Facility = Application
+#SymbolicName = WOLF_TEST_PARAMS
+#Language = English
+#This is a message with parameter %1 and parameter %2
+#.
+#EOF
diff --git a/src/log/wolfmsg.mc b/src/log/wolfmsg.mc
index ad7003d..89a31b6 100644
--- a/src/log/wolfmsg.mc
+++ b/src/log/wolfmsg.mc
@@ -34,8 +34,6 @@ Language = German
Unix-Prozess
.
-# constants things defined by the event logger (advapi32.dll)
-
;// event log severity levels (severity bits)
SeverityNames = (
Success = 0x0 : STATUS_SEVERITY_SUCCESS
@@ -55,19 +53,741 @@ FacilityNames = (
MessageIdTypedef = DWORD
-MessageId = 0x100
+ wolf_log_level_t level, int category_id, int message_id, const char *format, ... )
+MessageId = ???
Severity = Error
Facility = Application
-SymbolicName = WOLF_TEST_NO_PARAMS
+SymbolicName = WOLF_MSG_DAEMON_CANT_CLOSE_FD
Language = English
-This is a test message without any parameters
-It can be two lines though
+Error while closing file descriptor %1: %2
.
-
-MessageId = 0x101
+ WOLF_LOG_EMERG, 2, 2 * 1000 +29,
+ ( (const char *)( "Error while closing file descriptor %d: %s" ) ),
+ fd, strerror( (*__errno_location ()) ) )
+MessageId = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+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 = ???
Severity = Error
Facility = Application
-SymbolicName = WOLF_TEST_PARAMS
+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 = ???
+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 = ???
+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 = ???
+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 = ???
+Severity = Information
+Facility = Application
+SymbolicName = WOLF_MSG_DAEMON_FUNC_SIGNAL
Language = English
-This is a message with parameter %1 and parameter %2
+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 ) )