Hi , In c++ we have a function syslog for logging data into the log file . Similar function can be used in syslog-ng for logging or there is a separate function I am totally new to syslog-ng. Thanks =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Ankit Mahawar <ankit.mahawar@tcs.com> writes:
In c++ we have a function syslog for logging data into the log file .
Similar function can be used in syslog-ng for logging or there is a separate function
If you mean the syslog(3) function, which is part of the standard C library, then that works with syslog-ng just as well. -- |8]
Thanks for your inputs. I have another doubt that if both syslog and syslog-ng is configured then the logs will do to syslog or syslog-ng ?? Thanks From: Gergely Nagy <algernon@balabit.hu> To: syslog-ng@lists.balabit.hu Date: 11/18/2011 12:24 PM Subject: Re: [syslog-ng] Query regarding syslog-ng Sent by: syslog-ng-bounces@lists.balabit.hu Ankit Mahawar <ankit.mahawar@tcs.com> writes:
In c++ we have a function syslog for logging data into the log file .
Similar function can be used in syslog-ng for logging or there is a separate function
If you mean the syslog(3) function, which is part of the standard C library, then that works with syslog-ng just as well. -- |8] ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Ankit Mahawar <ankit.mahawar@tcs.com> writes:
Thanks for your inputs.
I have another doubt that if both syslog and syslog-ng is configured then the logs will do to syslog or syslog-ng ??
Whichever is configured to read from /dev/log (at least on Linux - other systems might use some different device underneath) will end up with the log messages. If both are configured to read from there, then whichever opens it first will win. (Or in other words: use syslog-ng, replace your standard syslogd with it ;) -- |8]
participants (2)
-
Ankit Mahawar
-
Gergely Nagy