Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Renderer - Consolidation - Proposal #53

Closed
9 tasks done
s-sreenath opened this issue Apr 17, 2016 · 10 comments
Closed
9 tasks done

Additional Renderer - Consolidation - Proposal #53

s-sreenath opened this issue Apr 17, 2016 · 10 comments
Assignees
Milestone

Comments

@s-sreenath
Copy link
Contributor

s-sreenath commented Apr 17, 2016

Consolidated List of Additional Renderer from various requests #21, #45

  • 1. aspnet-request-cookie - To Render cookie(s) from the request. Allows comma separated to get multiple cookie values. Can also allow json formatting.
  • 2. aspnet-request-querystring - To Render querystring(s) from the request. Allows comma separated to get multiple querystring values. Can also allow json formatting.
  • 4. aspnet-request-method - To Render the Http Method for the request.
  • 5. aspnet-request-referrer - To Render the Referrer URL.
  • 6. aspnet-request-url - To Render the Request URL.
  • 7. aspnet-mvc-action - To Render the MVC action method.
  • 8. aspnet-mvc-controller - To Render the MVC Controller Name.
  • 9. aspnet-host - To Capture the HOST.in MVC Core Apps (a.k.a ASP.NET 5)
  • 12. aspnet-useragent - To Capture the Useragent of the request.

Nice to Have

  1. aspnet-mvc-routedata - To capture the additional information, not sure if this is possible but can check.
  2. aspnet-machinename - To Capture the machine name where the WebSite is hosted. Not Sure if there is another NLog Layout Renderer can accommodate the same. This is available in the base NLog Refer https://github.com/NLog/NLog/wiki/Machinename-Layout-Renderer
  3. aspnet-host-version - No sure if this is required, but just a thought. Needs more discussion.

History
04/19/2016
Changed aspnet-request-referrerurl to aspnet-request-referrer
Changed aspnet-request-requesturl to aspnet-request-url
Added more renderer for User Agent, IP Addressm IsHttps (item 11, 12, 13) above

06/04/2016
Moved this item from above.
3. aspnet-request-servervariable - To Capture any servervariable. Allows comma separated to get mulitple server variables. Can also allow json formatting. This is specific to Pre MVC CORE 1.0 (a.k.a ASP.NET 5)
13. aspnet-ipaddress - To Capture the ip address of the machine from where the request is made.
11. aspnet-ishttps - true/false value which says if the site is setup as https or not.

@304NotModified 304NotModified self-assigned this Apr 17, 2016
@304NotModified
Copy link
Member

304NotModified commented Apr 18, 2016

Looks nice,

What do you think about:

  • User Agent:
  • IP Address:
  • proxy IP Address (x-Forwarded-For header)

as discussed in #21?

and:

  • IsHTTPS

as discussed in #45?

Or is it outside this scope?

Also, we were not sure if the MVC prefix is correct. Maybe it should be "aspnet-route-action" instead of "aspnet-mvc-action", but that depends if we can use the same layout renderer for MVC and Web API.

aspnet-request-referrerurl - To Render the Referrer URL.
aspnet-request-requesturl - To Render the Request URL.

I propose: aspnet-request-referrer and aspnet-request-url for those.

@s-sreenath
Copy link
Contributor Author

s-sreenath commented Apr 19, 2016

aspnet-request-referrerurl - To Render the Referrer URL.
aspnet-request-requesturl - To Render the Request URL.

I propose: aspnet-request-referrer and aspnet-request-url for those.

Updated in the Main Comment.

What do you think about:

User Agent:
IP Address:
proxy IP Address (x-Forwarded-For header)
as discussed in #21?

and:

IsHTTPS
as discussed in #45?

Included these items except the X-Forwaded-For, Need to discuss on this.

@304NotModified
Copy link
Member

Looks complete and 👍

@s-sreenath
Copy link
Contributor Author

Any plans in which version we want to do this?

@304NotModified
Copy link
Member

The next minor version would be nice (4.3). This is really helpful for .NET Core

@304NotModified
Copy link
Member

304NotModified commented May 16, 2016

@304NotModified 304NotModified modified the milestone: 4.3 Jul 8, 2016
@304NotModified
Copy link
Member

fixed by #54

@DanielLaberge
Copy link

What about getting the client's IP Address? It's not clear whether (or how) this is supported.

Previously was ${aspnet-request:serverVariable=remote_addr}

@s-sreenath
Copy link
Contributor Author

@DanielLaberge I guess that was missed out. I vl get to those when I have sometime.

@304NotModified
Copy link
Member

Please do create a new Github issue. It's easier to track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants