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