set_up_logging_from_args

gammapy.utils.scripts.set_up_logging_from_args(args)[source]

Set up logging from command line arguments.

This is a helper function that should be called from all Gammapy command line tools. It executes the boilerplate that’s involved in setting up the root logger the way we like it.