aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2015-09-30 18:02:52 +0200
committerNick Mathewson <nickm@torproject.org>2015-09-30 18:34:15 +0200
commit335af6fed8af30b8528965247622b71102e8dd2c (patch)
tree7e614dfdf10a28dd9ad599683c11336ef9a6bb2b /src/common/log.c
parent1cf0d82280973a52403c160fa47a4fb06dfca6c3 (diff)
downloadtor-335af6fed8af30b8528965247622b71102e8dd2c.tar.gz
tor-335af6fed8af30b8528965247622b71102e8dd2c.zip
Document syslog_identity_tag for add_syslog_log
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 8d1c40c36e..126fb2e5db 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -1097,6 +1097,9 @@ add_file_log(const log_severity_list_t *severity, const char *filename,
#ifdef HAVE_SYSLOG_H
/**
* Add a log handler to send messages to they system log facility.
+ *
+ * If this is the first log handler, opens syslog with ident Tor or
+ * Tor-<syslog_identity_tag> if that is not NULL.
*/
int
add_syslog_log(const log_severity_list_t *severity, const char* syslog_identity_tag)