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 2020/04/22 11:45:35 UTC
[GitHub] [incubator-apisix] sshniro opened a new issue #1492: request help: How to run loggers globally
sshniro opened a new issue #1492:
URL: https://github.com/apache/incubator-apisix/issues/1492
### Issue description
When making a logger globally available (http/tcp/udp) the plugins which use the batch processor creates log buffers for individual route ids:
```bash
local entry = log_util.get_full_log(ngx)
local log_buffer = buffers[entry.route_id]
```
So, even though I configure the plugin to run globally it's going to create log buffers per route. One option to resolve this by using a single log buffer entry, if the plugin is configured as a global plugin.
Thus how can I identify whether a plugin is configured per route or globally inside the `_M.log` phase?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] sshniro commented on issue #1492: request help: How to run loggers globally
Posted by GitBox <gi...@apache.org>.
sshniro commented on issue #1492:
URL: https://github.com/apache/incubator-apisix/issues/1492#issuecomment-645292866
That would be great, I'll create an issue for this enhancement.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] sshniro commented on issue #1492: request help: How to run loggers globally
Posted by GitBox <gi...@apache.org>.
sshniro commented on issue #1492:
URL: https://github.com/apache/incubator-apisix/issues/1492#issuecomment-643767934
Hi @membphis, can I know, is there a way to identify if the plugin is running in a global context or not?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] membphis commented on issue #1492: request help: How to run loggers globally
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1492:
URL: https://github.com/apache/incubator-apisix/issues/1492#issuecomment-645285589
we dont have this `flag` now. if you need, we can add one.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org