public class RequestLogger extends HttpMiddleware implements HttpConstants
route.use(new RequestLogger(2048));
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RequestLogger.RequestLoggerTask |
protected static class |
RequestLogger.RequestProperties |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
executor |
protected static org.slf4j.Logger |
logger |
protected int |
maxPrintedBytes |
protected boolean |
shutDownThreadPools |
protected RequestLogger.RequestLoggerTask |
task |
ACCEPT, ACCEPT_ENCODING, AUTHORIZATION, CACHE_CONTROL, CHUNKED, CLOSE, CONNECT, CONNECTION, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, CONTENT_TYPE_HTML, CONTENT_TYPE_JSON, COOKIE, DEFLATE, DELETE, ETAG, GET, GZIP, HEAD, IF_NONE_MATCH, KEEP_ALIVE, LOCATION, META_CONTENT_TYPE, META_HEADERS, META_LOCALE, META_LOCATION, META_SESSION, META_STATUS, META_TEMPLATE, NO_CACHE, OPTIONS, PATCH, POST, PROPERTY_COOKIES, PROPERTY_SESSION_ID, PROPERTY_USER, PUT, SET_COOKIE, TRACE, TRANSFER_ENCODING, WWW_AUTHENTICATE, X_FORWARDED_FOR| Constructor and Description |
|---|
RequestLogger() |
RequestLogger(int maxPrintedBytes) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ExecutorService |
getExecutor()
Returns the ExecutorService.
|
int |
getMaxPrintedBytes()
Returns the max number of printed bytes.
|
RequestProcessor |
install(RequestProcessor next,
io.datatree.Tree config) |
boolean |
isShutDownThreadPools() |
void |
setExecutor(java.util.concurrent.ExecutorService executor)
Sets the ExecutorService.
|
void |
setMaxPrintedBytes(int maxDumpSize)
Sets the max number of printed bytes.
|
void |
setShutDownThreadPools(boolean shutDownThreadPools) |
void |
started(services.moleculer.ServiceBroker broker) |
void |
stopped() |
protected static final org.slf4j.Logger logger
protected int maxPrintedBytes
protected java.util.concurrent.ExecutorService executor
protected RequestLogger.RequestLoggerTask task
protected boolean shutDownThreadPools
public RequestLogger()
public RequestLogger(int maxPrintedBytes)
public void started(services.moleculer.ServiceBroker broker)
throws java.lang.Exception
started in interface services.moleculer.service.MoleculerLifecyclestarted in class services.moleculer.service.MoleculerComponentjava.lang.Exceptionpublic void stopped()
stopped in interface services.moleculer.service.MoleculerLifecyclestopped in class services.moleculer.service.MoleculerComponentpublic RequestProcessor install(RequestProcessor next, io.datatree.Tree config)
install in class HttpMiddlewarepublic int getMaxPrintedBytes()
public void setMaxPrintedBytes(int maxDumpSize)
maxDumpSize - max number of printed bytespublic java.util.concurrent.ExecutorService getExecutor()
public void setExecutor(java.util.concurrent.ExecutorService executor)
executor - the executor to setpublic boolean isShutDownThreadPools()
public void setShutDownThreadPools(boolean shutDownThreadPools)