Lines Matching refs:message
57 * @memo Log a message
58 * @param priority The priority of the message (see syslog man page)
59 * @param msg The message string
64 * if neither file is present, the message will be
67 void Trace::message(int priority, const char *msg) {
69 char message[MAX_MSG_PREFIX_LEN + MAX_MSG_LEN + 2];
118 /* Format the message string for the log file */
119 snprintf(message, strlen(prefix) + MAX_MSG_LEN + 2, "%s:%s\n",
122 write(fd, message, strlen(message));
124 } /* Else discard the log message */
145 message(LOG_DEBUG, "entered");
158 message(LOG_DEBUG, "exited");
166 message(STACK_TRACE, "Stack trace follows");
170 message(STACK_TRACE, msg.c_str());