From 213bf349c319811c8cb5458ac24ad9e61c5bbe4d Mon Sep 17 00:00:00 2001 From: z3bra Date: Sat, 18 Jul 2020 15:46:19 +0200 Subject: Add an option to log into a file rather than stdout (#1168) Use Logfile option in the `[general]` section --- matterbridge.toml.sample | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'matterbridge.toml.sample') diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 975078c7..156e1f25 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1604,6 +1604,14 @@ MediaDownloadBlacklist=[".html$",".htm$"] #OPTIONAL (default false) IgnoreFailureOnStart=false +#LogFile defines the location of a file to write logs into, rather +#than stdout. +#Logging will still happen on stdout if the file cannot be open for +#writing, or if the value is empty. Note that the log won't roll, so +#you might want to use logrotate(8) with this feature. +#OPTIONAL (default empty) +LogFile=/var/log/matterbridge.log + ################################################################### #Tengo configuration ################################################################### -- cgit v1.2.3