public interface RequestLogger
Modifier and Type | Field and Description |
---|---|
static long |
ALL_CONTENT
Indicates that all content is copied to the
log.
|
static long |
NO_CONTENT
Indicates that no content is copied to the log
(the default).
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the log.
|
<T> T |
copyContent(T content)
Copies content to the log during request
processing up to the length limit specified for the logger.
|
void |
flush()
Send buffered output to the log
destination.
|
long |
getContentMax()
Returns how much content is copied to the
log.
|
java.io.PrintStream |
getPrintStream()
Returns the underlying PrintStream used for
logging.
|
boolean |
isEnabled()
Returns whether logging is active or
suspended.
|
void |
setContentMax(long length)
Controls how much content is copied to the log
(defaulting to NO_CONTENT).
|
void |
setEnabled(boolean enabled)
Suspend or resume logging.
|
static final long NO_CONTENT
static final long ALL_CONTENT
long getContentMax()
void setContentMax(long length)
length
- the limit on copying contentboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- the enablement of loggingjava.io.PrintStream getPrintStream()
<T> T copyContent(T content)
T
- the type to returncontent
- the copied contentvoid flush()
void close()
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.