Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigType = "logging" + cpi.OCM_CONFIG_TYPE_SUFFIX ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { runtime.ObjectVersionedType `json:",inline"` // ContextType described the context type to apply the setting. // If not set, the settings will be applied to any logging context provider, // which are not derived contexts. ContextType string `json:"contextType,omitempty"` Settings logcfg.Config `json:"settings"` // ExtraId is used for the context type "default", "ocm" or "global" to be able // to reapply the same config again using a different // identity given by the settings hash + the id. ExtraId string `json:"extraId,omitempty"` }
Config describes logging settings for a dedicated context type.
func NewWithConfig ¶ added in v0.3.0
NewWithConfig creates a logging config specification from a logging config object.
Click to show internal directories.
Click to hide internal directories.