summaryrefslogtreecommitdiff
path: root/src/or/or.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/or/or.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/or/or.h')
-rw-r--r--src/or/or.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 4496cbcec3..a80cd55b53 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3424,6 +3424,7 @@ typedef struct {
* each log message occurs? */
int TruncateLogFile; /**< Boolean: Should we truncate the log file
before we start writing? */
+ char *SyslogIdentityTag; /**< Identity tag to add for syslog logging. */
char *DebugLogFile; /**< Where to send verbose log messages. */
char *DataDirectory; /**< OR only: where to store long-term data. */