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

Disable logging of DefaultLastHttpContent #1114

Open
tussinha opened this issue Nov 1, 2021 · 1 comment
Open

Disable logging of DefaultLastHttpContent #1114

tussinha opened this issue Nov 1, 2021 · 1 comment

Comments

@tussinha
Copy link

tussinha commented Nov 1, 2021

We are facing an issue where our log files are getting overwhelmed by READ and WRITE logs of DefaultLastHttpContent.
Is there an option to disable logging of DefaultLastHttpContent only?

_, {"instant":{"epochSecond":1633329330,"nanoOfSecond":825000000},"thread":"Salamander-ClientToZuulWorker-0","level":"INFO","loggerName":"zuul.server.nettylog","message":"[id: 0xbcea5352, L:/127.0.0.1:7001 - R:/127.0.0.1:56226] WRITE: DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 60, cap: 60/60, unwrapped: PooledUnsafeDirectByteBuf(ridx: 668, widx: 668, cap: 1024)), decoderResult: success), 60B\r\n +-------------------------------------------------+\r\n | 0 1 2 3 4 5 6 7 8 9 axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |.....ceL)... |\r\n+--------+-------------------------------------------------+----------------+","endOfBatch":true,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","threadId":43,"threadPriority":5,"timestamp":"2021-10-04T12:05:30.825+0530"}_

@argha-c
Copy link
Collaborator

argha-c commented Nov 2, 2021

As long as you're using the log4j logger, you can disable/force logging at higher severity with a FQCN. See the sample log config for an example.

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

2 participants