@Endpoint(id="loggers", defaultSensitive=false, defaultEnabled=false) public class LoggersEndpoint extends Object
Endpoint
to manage loggers.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
Endpoint default enabled.
|
static boolean |
DEFAULT_SENSITIVE
Endpoint default sensitivity.
|
static String |
NAME
Endpoint name.
|
static String |
PREFIX
Endpoint configuration prefix.
|
Constructor and Description |
---|
LoggersEndpoint(ManagedLoggingSystem loggingSystem,
LoggersManager<Map<String,Object>> loggersManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteSensitive() |
Publisher<Map<String,Object>> |
logger(@NotBlank String name) |
Publisher<Map<String,Object>> |
loggers() |
void |
setLogLevel(@NotBlank String name,
LogLevel configuredLevel) |
void |
setWriteSensitive(boolean writeSensitive)
Determines whether modifications to the log level should
require authentication.
|
public static final String NAME
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_SENSITIVE
public LoggersEndpoint(ManagedLoggingSystem loggingSystem, LoggersManager<Map<String,Object>> loggersManager)
loggingSystem
- the LoggingSystem
loggersManager
- the LoggersManager
@Read @SingleResult public Publisher<Map<String,Object>> loggers()
Mono
@Read @SingleResult public Publisher<Map<String,Object>> logger(@NotBlank @Selector @NotBlank String name)
name
- The name of the logger to findLogLevel
(both configured and effective) of the named logger@Write @Sensitive(property="write-sensitive") public void setLogLevel(@NotBlank @Selector @NotBlank String name, @Nullable LogLevel configuredLevel)
name
- The name of the logger to configureconfiguredLevel
- The LogLevel
to set on the named loggerpublic boolean isWriteSensitive()
public void setWriteSensitive(boolean writeSensitive)
writeSensitive
- The write sensitivity option.