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

Netty with accessEvents with logback-access #781

Open
bhochhi opened this issue Jul 10, 2019 · 15 comments
Open

Netty with accessEvents with logback-access #781

bhochhi opened this issue Jul 10, 2019 · 15 comments
Labels
help wanted We need contributions on this type/enhancement A general enhancement

Comments

@bhochhi
Copy link

bhochhi commented Jul 10, 2019

Why netty has no accessEvents but just accessLog implementation? Is there any plan supporting that?

@violetagg violetagg added status/need-triage A new issue that still need to be evaluated as a whole type/enhancement A general enhancement labels Aug 2, 2019
@violetagg violetagg removed the status/need-triage A new issue that still need to be evaluated as a whole label Aug 29, 2019
@violetagg violetagg added this to the General Backlog milestone Aug 29, 2019
@violetagg
Copy link
Member

Such integration should be possible via https://projectreactor.io/docs/netty/release/api/reactor/netty/http/server/HttpServer.html#accessLog-boolean-reactor.netty.http.server.logging.AccessLogFactory-

Marking this as help wanted if somebody wants to work on this.

@childewuque
Copy link

Thanks
It would be better if we could configure instead of coding

@JooHyukKim
Copy link

has anyone worked on this yet?

@violetagg
Copy link
Member

@JooHyukKim Currently nobody is working on this one.

@JooHyukKim
Copy link

@violetagg I see. Would you allow me to work on it? seems quite interesting

@JooHyukKim
Copy link

@violetagg @bhochhi I'd like to hear more about your thoughts on what AccessEvents are and how they should behave.

@violetagg
Copy link
Member

@violetagg I see. Would you allow me to work on it? seems quite interesting

@JooHyukKim Yes sure

@violetagg
Copy link
Member

@violetagg @bhochhi I'd like to hear more about your thoughts on what AccessEvents are and how they should behave.

I believe that @bhochhi meant integration with logback-access https://logback.qos.ch/access.html

@JooHyukKim
Copy link

trueeee. @bhochhi is that what you are suggesting? integration with logback-access like how Tomcat and Jetty are integrated with logback-access described in https://logback.qos.ch/access.html ?

@JooHyukKim
Copy link

logback-access is officailly described to integrate with Serverlet Containers such as Jetty or Tomcat.
As far as I know, we also need netty-specific Adaptor and ValveBase implementation in Logback-access.
looking at codebase of Tomcat and Jetty integration with logback-access.

Lemme know how you think :)
cheers

@bhochhi
Copy link
Author

bhochhi commented Apr 25, 2022

yes, I wanted Netty to support AccessEvent so that logback-access can be supported. However, my original question is Why Netty didn't have support? Is that by design or other limitations due to different paradigms?

@violetagg
Copy link
Member

yes, I wanted Netty to support AccessEvent so that logback-access can be supported. However, my original question is Why Netty didn't have support? Is that by design or other limitations due to different paradigms?

I don't understand this.

In Tomcat you have Valve concept, here in Reactor Netty you have a mechanism for a custom implementation for the access logging https://projectreactor.io/docs/netty/release/api/reactor/netty/http/server/HttpServer.html#accessLog-boolean-reactor.netty.http.server.logging.AccessLogFactory-

@JooHyukKim
Copy link

I think this issue needs more clarification on exactly what the desired enhancement is 👍

@childewuque
Copy link

@JooHyukKim
#1752

For example, add remote host in logback.xml or in other file,like nginx format
Thanks

@JooHyukKim
Copy link

Such integration should be possible via https://projectreactor.io/docs/netty/release/api/reactor/netty/http/server/HttpServer.html#accessLog-boolean-reactor.netty.http.server.logging.AccessLogFactory-

Marking this as help wanted if somebody wants to work on this.

@childewuque
kindly suggest specific purpose and way to add the functionality? thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We need contributions on this type/enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants