/* Function demonstrates module level filtering. 
Sample module API is called then logging for this module is disabled and function is called again. It is expected that only logs generated by the first call will be processed by the output.  */
static void module_logging_showcase(void)
/* Function demonstrates module level filtering. 
Sample module API is called then logging for this module is disabled and function is called again. It is expected that only logs generated by the first call will be processed by the output.  */
static void module_logging_showcase(void)
{
	printk("Module logging showcase.\n");
	sample_module_func();
	inline_func();
	if (IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING)) {
		printk("Disabling logging in the %s module\n",
					sample_module_name_get());
		log_filter_set(NULL, 0,
			       log_source_id_get(sample_module_name_get()),
			       LOG_LEVEL_NONE);
		sample_module_func();
		printk("Function called again but with logging disabled.\n");
	} else {
		printk("%s option disabled.\n",
		       STRINGIFY(CONFIG_LOG_RUNTIME_FILTERING));
	}
}