我使用此示例http://nlog-project.org/documentation/v2.0.1/html/T_NLog_Targets_MemoryTarget.htm
我希望我们如何阅读Log
NLog 异步 中的MemoryTarget
项来填充{{ 1}}例如?
RichTextBox
有任何线索吗?
答案 0 :(得分:1)
您需要创建一个新线程并将MemoryTarget
传递给新的trhead。
PS:RichTextBox
已经实现了对upstream app {
# Path to Puma SOCK file, as defined previously
server unix:///var/www/iaw2015/shared/sockets/puma.sock fail_timeout=0;
}
server {
listen 80;
server_name localhost;
root /var/www/iaw2015/public;
try_files $uri/index.html $uri @app;
location @app {
proxy_pass http://app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
的写入。请参阅NLog.Windows.Forms package如何使用。