Function vector_core::config::init_log_schema

source ·
pub fn init_log_schema(log_schema: LogSchema, deny_if_set: bool)
Expand description

Loads Log Schema from configurations and sets global schema. Once this is done, configurations can be correctly loaded using configured log schema defaults.

§Errors

This function will fail if the builder fails.

§Panics

If deny is set, will panic if schema has already been set.