Hi,
We are using Microgateway and would like to have access logs containing more information that default api logs on info level. Is it possible to alter existing api logs? This additional information we want to log is available for example in analytics plugin, so we could do the logging there. Another option is to have separate log file for this and another question is if this is doable through plugins and existing logging setup?
These are default logs per request:
1579016817500 info sourceRequest m=GET, u=/dummy, h=localhost:8080, r=::1:63762, i=1884d2b0-36e5-11ea-8759-8729f75470ae 1579016817554 info targetRequest m=GET, u=/api/dummy, h=localhost:8080, i=1884d2b0-36e5-11ea-8759-8729f75470ae 1579016818638 info targetResponse s=200, d=1139, i=1884d2b0-36e5-11ea-8759-8729f75470ae 1579016818645 info sourceResponse s=200, d=1146, i=1884d2b0-36e5-11ea-8759-8729f75470ae
This is what we would like to have for source request (user=A, role=admin):
1579016817500 info sourceRequest m=GET, u=/dummy, h=localhost:8080, r=::1:63762, user=A, role=admin, i=1884d2b0-36e5-11ea-8759-8729f75470ae<br />