Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logging 配置uWSGI以继续记录到默认记录器和自定义记录器_Logging_Configuration_Uwsgi - Fatal编程技术网

Logging 配置uWSGI以继续记录到默认记录器和自定义记录器

Logging 配置uWSGI以继续记录到默认记录器和自定义记录器,logging,configuration,uwsgi,Logging,Configuration,Uwsgi,我正在尝试创建一个错误日志文件,该文件是一组经过筛选的错误日志。使用下面的配置,所有匹配的错误日志将重新路由到此文件,并从默认记录器中消失。是否有办法将错误日志复制到另一个记录器,而不是重新路由它们 [uwsgi] # Create a file logger named test logger = test file:/tmp/uwsgi.log # Format the logs specifically log-encoder = format:test format-this-righ

我正在尝试创建一个错误日志文件,该文件是一组经过筛选的错误日志。使用下面的配置,所有匹配的错误日志将重新路由到此文件,并从默认记录器中消失。是否有办法将错误日志复制到另一个记录器,而不是重新路由它们

[uwsgi]
# Create a file logger named test
logger = test file:/tmp/uwsgi.log
# Format the logs specifically 
log-encoder = format:test format-this-right,${msgnl}
# Send only logs matching this regex to test
log-route = test curse the uwsgi instance .*