@@ -825,16 +825,29 @@ To test these files, do the following in a POSIX environment:
825
825
which will lead to records being written to the log.
826
826
827
827
#. Inspect the log files in the :file: `run ` subdirectory. You should see the
828
- most recent log lines in files matching the pattern :file: `app.log* `. They won't be in
829
- any particular order, since they have been handled concurrently by different
830
- worker processes in a non-deterministic way.
828
+ most recent log lines in files matching the pattern :file: `app.log* `. They
829
+ won't be in any particular order, since they have been handled concurrently
830
+ by different worker processes in a non-deterministic way.
831
831
832
832
#. You can shut down the listener and the web application by running
833
833
``venv/bin/supervisorctl -c supervisor.conf shutdown ``.
834
834
835
835
You may need to tweak the configuration files in the unlikely event that the
836
836
configured ports clash with something else in your test environment.
837
837
838
+ The default configuration uses a TCP socket on port 9020. You can use a Unix
839
+ Domain socket instead of a TCP socket by doing the following:
840
+
841
+ #. In :file: `listener.json `, add a ``socket `` key with the path to the domain
842
+ socket you want to use. If this key is present, the listener listens on the
843
+ corresponding domain socket and not on a TCP socket (the ``port `` key is
844
+ ignored).
845
+
846
+ #. In :file: `webapp.json `, change the socket handler configuration dictionary
847
+ so that the ``host `` value is the path to the domain socket, and set the
848
+ ``port `` value to ``null ``.
849
+
850
+
838
851
.. currentmodule :: logging
839
852
840
853
.. _context-info :
0 commit comments