aboutsummaryrefslogtreecommitdiff
path: root/src/common/torlog.h
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2015-09-30 17:54:56 +0200
committerNick Mathewson <nickm@torproject.org>2015-09-30 18:34:15 +0200
commit1cf0d82280973a52403c160fa47a4fb06dfca6c3 (patch)
treec22b791c38b3cb06d7abe7186d5839bc7fabf792 /src/common/torlog.h
parent0d43a54d1c9c1be24c33eed79029d1bd44a6a28a (diff)
downloadtor-1cf0d82280973a52403c160fa47a4fb06dfca6c3.tar.gz
tor-1cf0d82280973a52403c160fa47a4fb06dfca6c3.zip
Add SyslogIdentityTag
When logging to syslog, allow a tag to be added to the syslog identity ("Tor"), i.e. the string prepended to every log message. The tag can be configured by setting SyslogIdentityTag and defaults to none. Setting it to "foo" will cause logs to be tagged as "Tor-foo". Closes: #17194.
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r--src/common/torlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index 67edf14c04..57679b5f5c 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -135,7 +135,7 @@ void add_stream_log(const log_severity_list_t *severity, const char *name,
int add_file_log(const log_severity_list_t *severity, const char *filename,
const int truncate);
#ifdef HAVE_SYSLOG_H
-int add_syslog_log(const log_severity_list_t *severity);
+int add_syslog_log(const log_severity_list_t *severity, const char* syslog_identity_tag);
#endif
int add_callback_log(const log_severity_list_t *severity, log_callback cb);
void logs_set_domain_logging(int enabled);