Skip to content

russelldb/InMemoryAppender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These classes allow you to switch on Apache HTTP Client “wire” level logging without filling your logs.

Set up the logger hierarchy (somewhat) like that in the example log4j.properties in this project and use the LogNoHttpResponseRetryHandler as your HttpResponseRetryHandler. Whenever a NoHttpResponseException is encountered the contents of the buffer in the InMemoryAppender will be flushed to the delegate logger you have configured.

Use LogNoHttpResponseRetryHandlerTest as an example to create your own handler, to dump the buffer on the exceptions you prefer.

About

Log trace level messages to a buffer in memory, dump them to another appender at will

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages