public final class ValidatedLoggingConfig extends Object
LoggingConfig.
Ensures that there are no duplicate names or ids and Enables easy lookup.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatedLoggingConfig.ValidatedLoggableElement
A validated wrapper for
LoggableElement. |
| Modifier and Type | Field and Description |
|---|---|
static ValidatedLoggingConfig |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<String> |
allKnownIdentifiers()
Returns all known element identifiers.
|
static ValidatedLoggingConfig |
create(LoggingConfig configProto)
Parses the logging config proto into a
ValidatedLoggingConfig. |
ValidatedLoggingConfig.ValidatedLoggableElement |
getElement(String identifier)
Returns a
ValidatedLoggingConfig.ValidatedLoggableElement based on the given element name or null. |
public static final ValidatedLoggingConfig EMPTY
public static ValidatedLoggingConfig create(LoggingConfig configProto)
ValidatedLoggingConfig.IllegalArgumentException - if there is an error during parsing.@Nullable public ValidatedLoggingConfig.ValidatedLoggableElement getElement(String identifier)
ValidatedLoggingConfig.ValidatedLoggableElement based on the given element name or null.public com.google.common.collect.ImmutableSet<String> allKnownIdentifiers()