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

How to log access logs to file any configuration? #301

Closed
grku2opia opened this issue Feb 28, 2018 · 11 comments
Closed

How to log access logs to file any configuration? #301

grku2opia opened this issue Feb 28, 2018 · 11 comments
Labels
type/enhancement A general enhancement
Milestone

Comments

@grku2opia
Copy link

grku2opia commented Feb 28, 2018

No description provided.

@violetagg
Copy link
Member

Hi,

There is no access log available at the moment.
Mark this as enhancement.

Regards,
Violeta

@violetagg violetagg added this to the 0.8.x Backlog milestone Feb 28, 2018
@violetagg violetagg added the type/enhancement A general enhancement label Feb 28, 2018
@spencergibb
Copy link

Users of spring-cloud-gateway are asking for this.

@chsi13
Copy link

chsi13 commented May 25, 2018

What about this feature ?

@tillmannheigel
Copy link

+1

6 similar comments
@imet
Copy link

imet commented Jul 13, 2018

+1

@stalelabs
Copy link

+1

@jayendra155
Copy link

+1

@bruno-roussel
Copy link

+1

@the-fine
Copy link

+1

@rgeoroceanu
Copy link

+1

violetagg added a commit that referenced this issue Sep 4, 2018
@violetagg violetagg modified the milestones: 0.8.x Backlog, 0.7.9.RELEASE Sep 4, 2018
@violetagg
Copy link
Member

Fixed with e26831e
Only CLF is supported for the moment.
-Dreactor.netty.http.server.accessLogEnabled=true can be used to enable access log (by default it is disabled)
The configuration below (logback) or similar (other logging frameworks) can be used to have a separate access log file

    <appender name="accessLog" class="ch.qos.logback.core.FileAppender">
        <file>access_log.log</file>
        <encoder>
            <pattern>%msg%n</pattern>
        </encoder>
    </appender>
    <appender name="async" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="accessLog" />
    </appender>

    <logger name="reactor.netty.http.server.AccessLog" level="INFO" additivity="false">
        <appender-ref ref="async"/>
    </logger>

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

No branches or pull requests