@Endpoint(id="loggers", defaultSensitive=false, defaultEnabled=false) public class LoggersEndpoint extends java.lang.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 java.lang.String |
NAME
Endpoint name.
|
static java.lang.String |
PREFIX
Endpoint configuration prefix.
|
Constructor and Description |
---|
LoggersEndpoint(ManagedLoggingSystem loggingSystem,
LoggersManager<java.util.Map<java.lang.String,java.lang.Object>> loggersManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteSensitive() |
io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> |
logger(@NotBlank java.lang.String name) |
io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> |
loggers() |
void |
setLogLevel(@NotBlank java.lang.String name,
LogLevel configuredLevel) |
void |
setWriteSensitive(boolean writeSensitive)
Determines whether modifications to the log level should
require authentication.
|
public static final java.lang.String NAME
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_SENSITIVE
public LoggersEndpoint(ManagedLoggingSystem loggingSystem, LoggersManager<java.util.Map<java.lang.String,java.lang.Object>> loggersManager)
loggingSystem
- the LoggingSystem
loggersManager
- the LoggersManager
@Read public io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> loggers()
Single
@Read public io.reactivex.Single<java.util.Map<java.lang.String,java.lang.Object>> logger(@NotBlank @Selector @NotBlank java.lang.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 java.lang.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.