@ConfigurationProperties(value="access-logger") public static class NettyHttpServerConfiguration.AccessLogger extends Object
Constructor and Description |
---|
AccessLogger() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getExclusions() |
String |
getLogFormat()
Returns the log format to use.
|
String |
getLoggerName()
The logger name to use.
|
boolean |
isEnabled()
Returns whether the access logger is enabled.
|
void |
setEnabled(boolean enabled)
Enables or Disables the access logger.
|
void |
setExclusions(List<String> exclusions)
Sets the URI patterns to be excluded from the access log.
|
void |
setLogFormat(String logFormat)
Sets the log format to use.
|
void |
setLoggerName(String loggerName)
Sets the logger name to use.
|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- The flag.public String getLoggerName()
public void setLoggerName(String loggerName)
loggerName
- A logger name,public String getLogFormat()
public void setLogFormat(String logFormat)
logFormat
- The log format.public List<String> getExclusions()
public void setExclusions(List<String> exclusions)
exclusions
- A list of regular expression patterns to be excluded from the access logger if the request URI matches.Pattern.compile(String)