aboutsummaryrefslogtreecommitdiff
path: root/rpcapd/log.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some workarounds for old compilers.Guy Harris2019-08-091-1/+1
| | | | | | | | | | | | | Require Visual Studio 2015 or later; fail if we don't have it, and remove checks for older versions. That means we have C99-compliant snprintf() and vsnprintf(); require them when configuring for UN*X, and then use them directly, rather than having wrappers for systems lacking them. If we're using MSVC, skip the tests for options to request C99 compatibility - either we have VS 2015, which is sufficient, or we don't, in which case we fail.
* Handle systems that lack vsyslog(), such as AIX.Guy Harris2019-01-111-0/+51
| | | | Add a copyright notice to rpcapd/log.{c,h} while we're at it.
* Temporarily remove the Windows "system log" code.Guy Harris2019-01-071-0/+4
| | | | Needs more work; this should fix compile errors for now.
* Defer initialization of a log system to the first attempt to log to it.Guy Harris2019-01-071-38/+24
| | | | | | | | | | | | | That: 1) avoids doing any initialization if we end up logging to the standard error and 2) means that the first time we log to the "system log" we'll attempt to initialize it, even if we've logged to the standard error earlier.
* Support logging rpcapd messages to the "system log".Guy Harris2019-01-071-0/+219
That's what you want for daemons, as the standard error might not go anywhere or, worse, might go to the control socket. Also have a -D flag to control whether to log debug messages or not; the default is "not".