summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2021-04-22 20:45:20 +0000
committerAdam Kocoloski <kocolosk@apache.org>2021-04-22 20:45:20 +0000
commit0a6200d86c18560f05cb07c9fb65b096a802a7d3 (patch)
treeacd601328a697046a008b9620e758e0b88def7a8
parent898050d63f2c2e92b8827adf717c1867344d85a5 (diff)
downloadcouchdb-0a6200d86c18560f05cb07c9fb65b096a802a7d3.tar.gz
Add a temporary logger config
-rw-r--r--rel/files/sys.config30
1 files changed, 29 insertions, 1 deletions
diff --git a/rel/files/sys.config b/rel/files/sys.config
index 97562f561..7ea70b533 100644
--- a/rel/files/sys.config
+++ b/rel/files/sys.config
@@ -10,4 +10,32 @@
% License for the specific language governing permissions and limitations under
% the License.
-[].
+[
+ {kernel, [
+ {logger, [
+ {handler, access, logger_std_h,
+ #{
+ config => #{
+ file => "dev/logs/access.log"
+ },
+ filters => [
+ {access_logs, {fun logger_filters:domain/2, {log, equal, [chttpd_access_log]}}}
+ ],
+ filter_default => stop,
+ formatter => {logger_formatter, #{}}
+ }
+ },
+ {handler, debug, logger_std_h,
+ #{
+ config => #{
+ file => "dev/logs/debug.log"
+ },
+ filters => [
+ % comment this filter out to include access logs in the debug log as well
+ {access_logs, {fun logger_filters:domain/2, {stop, equal, [chttpd_access_log]}}}
+ ]
+ }
+ }
+ ]}
+ ]}
+].