You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/25 03:28:11 UTC

[GitHub] [apisix-go-plugin-runner] ZChengjin opened a new issue, #118: help request: How to customize the log file path in apisix-go-plugin-runner

ZChengjin opened a new issue, #118:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/118

   ### Description
   
   As the [documentation](https://apisix.apache.org/zh/docs/go-plugin-runner/getting-started/) says I modified the LogOutput of runner.RunnerConfig{} by modifying LogFilePath, but no matter what path I modify LogFilePath to, the log of go-plugin will be printed in apisix_log/error.log in the end.So I want to know How can I customize the log file path in apisix-go-plugin-runner.Thanks
   
   ### Environment
   
   APISIX version (run apisix version):3.0.0
   Operating system (run uname -a):Linux eee3e01b5631 4.19.76-linuxkit https://github.com/apache/apisix/pull/1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 GNU/Linux
   OpenResty / Nginx version (run openresty -V or nginx -V):nginx version: openresty/1.21.4.1;built by gcc 10.2.1 20210110 (Debian 10.2.1-6);built with OpenSSL 1.1.1n 15 Mar 2022
   etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
   APISIX Dashboard version, if relevant:apache/apisix-dashboard:2.13-alpine
   Plugin runner version, for issues related to plugin runners:apisix-go-plugin-runner(master)
   LuaRocks version, for installation issues (run luarocks --version):


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-go-plugin-runner] soulbird commented on issue #118: help request: How to customize the log file path in apisix-go-plugin-runner

Posted by GitBox <gi...@apache.org>.
soulbird commented on issue #118:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/118#issuecomment-1343884815

   Are you sure this path exists? Are there any `failed to open log...` related logs in the apisix log? Can you see the go-runner log if you don't make any changes?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-go-plugin-runner] jobop commented on issue #118: help request: How to customize the log file path in apisix-go-plugin-runner

Posted by GitBox <gi...@apache.org>.
jobop commented on issue #118:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/118#issuecomment-1345356930

   i have the same problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-go-plugin-runner] soulbird commented on issue #118: help request: How to customize the log file path in apisix-go-plugin-runner

Posted by GitBox <gi...@apache.org>.
soulbird commented on issue #118:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/118#issuecomment-1367753052

   go-runner is started in dev mode by default, and the log will be output in stdout. When go-runner is hosted in apisix, the log will be output in error.log.
   You can use `go-runner run -m prod` to change the run mode of go-runner so that you can see individual log files. In apisix, you can use the following configuration:
   ```
   ext-plugin:
      cmd: ["/path-to-your/go-runner/apisix-go-runner", "run", "-m", "prod"]
   ```
   We will supplement the documentation on this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org