summaryrefslogtreecommitdiffstats
path: root/plugins/imtemplate
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:44:16 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:44:16 +0000
commit15e8b33eedce5985701f0b8c949125999fcf789b (patch)
treef44a9af22478c5f8a31a347fb5b13b1ab47f8828 /plugins/imtemplate
parent680e899ce9bf84b2406620f4dc1a35986568c97a (diff)
downloadrsyslog-15e8b33eedce5985701f0b8c949125999fcf789b.tar.gz
rsyslog-15e8b33eedce5985701f0b8c949125999fcf789b.tar.xz
rsyslog-15e8b33eedce5985701f0b8c949125999fcf789b.zip
fixed a few remaining logerror() calls - thanks to Michael Biebl for
pointing that out
Diffstat (limited to 'plugins/imtemplate')
-rw-r--r--plugins/imtemplate/imtemplate.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/imtemplate/imtemplate.c b/plugins/imtemplate/imtemplate.c
index 33938045..6d29c4f1 100644
--- a/plugins/imtemplate/imtemplate.c
+++ b/plugins/imtemplate/imtemplate.c
@@ -227,22 +227,10 @@ CODESTARTrunInput
/* All rsyslog objects (see other modules, e.g. msg.c) are available
* to your here. Some useful things are:
*
- * logerror("string");
- * logs an error message as syslogd
+ * errmsg.LogError(NO_ERRCODE, format-string, ... params ...);
+ * logs an error message as syslogd, just as printf, e.g.
+ * errmsg.LogError(NO_ERRCODE, "Error %d occured during %s", 1, "test");
*
- * logerror("string with %s", uchar* ptr)
- * just like logerror, but with a variable pointer to a string
- *
- * The safe way to obtain a system error message is:
- * char errStr[1024]; // 1024 is just a (relatively) safe bet...
- * rs_strerror_r(errno, errStr, sizeof(errStr));
- * logerror("error occured: %s", errStr); // optional, of course...
- *
- * To log something to the debug log, simply use
- * dbgprintf("fmtstring %d, %s\n", 4711, "like in printf");
- * Be sure to include a newline '\n' at the end of the message, else
- * the debug log will become quite cluttered...
- *
* There are several ways how a message can be enqueued. This part of the
* interface is currently underspecified. Have a look at the function definitions
* in syslogd.c (sorry, folks...).