summaryrefslogtreecommitdiffhomepage
path: root/test/test_routing_tls.py
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-30 05:53:13 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-04-06 19:42:22 +0100
commitdc0a2a721abe133974fa3c5a1afdc4345df640a3 (patch)
treefee5ec1fbeefe995f4df5c23a0c68e4749ee9f2f /test/test_routing_tls.py
parent5fbc363fc2d2c7463072235d35a7a83b5bdab6c0 (diff)
downloadunit-dc0a2a721abe133974fa3c5a1afdc4345df640a3.tar.gz
unit-dc0a2a721abe133974fa3c5a1afdc4345df640a3.tar.bz2
Add per-application logging.
This adds main part of per-application logging. Currently when running in the foreground, unit application processes will send stdout to the current TTY and stderr to the unit log file. That behaviour won't change. When running as a daemon, unit application processes will send stdout to /dev/null and stderr to the unit log file. This commit allows to alter the latter case of unit running as a daemon, by allowing applications to redirect stdout and/or stderr to specific log files. This is done via two new application options, 'stdout' & 'stderr', e.g "applications": { "myapp": { ... "stdout": "/path/to/log/unit/app/stdout.log", "stderr": "/path/to/log/unit/app/stderr.log" } } These log files are created by the application processes themselves and thus the log directories need to be writable by the user (and or group) of the application processes. E.g $ sudo mkdir -p /path/to/log/unit/app $ sudo chown APP_USER /path/to/log/unit/app These need to be setup before starting unit with the above config. NOTE: You may or may not see stuff printed to stdout as stdout was traditionally used by CGI applications to communicate with the webserver. Closes: <https://github.com/nginx/unit/issues/197> Closes: <https://github.com/nginx/unit/issues/846> Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'test/test_routing_tls.py')
0 files changed, 0 insertions, 0 deletions