Belle II Software development
test_module_log_level.py
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4import basf2 as b2
5
6main = b2.Path()
7
8main.add_module(
9 'RootInput',
10 inputFileName=b2.find_file('framework/tests/root_input.root'),
11 branchNames=['EventMetaData'],
12 skipNEvents=1)
13
14main.add_module('EventInfoPrinter', logLevel=b2.LogLevel.INFO)
15
16event_info_printer_log_level = b2.logging.module('EventInfoPrinter').log_level
17print(f'Log-level for module EventInfoPrinter: {event_info_printer_log_level}')
18
19b2.process(path=main)