<jupyter_start><jupyter_text>How to control the verbosity of sos output and the number of running jobs * **Difficulty level**: easy* **Time need to lean**: 10 minutes or less* **Key points**:  * `-v` controls logging level from `error`, `warning`, `info` to `debug`  * `-v1` introduces a special text-based progress bar  * `%set -v` sets a persistent logging level for the entire notebook  * Environment variable `DBG_DEBUG` can be used to generate topic-specific debug information  * `-j` controls number of concurrent processes  Logging level SoS uses a logging system to output all sorts of information during the execution of workflows. The amount of output can be controlled by logging level, which can be `error` (0), `warning` (1), `info` (2), and `debug` (3). The default logging level for SoS is `info`.For example, logging at `info` level would produce message indicating the steps executed and input output files, while `-v0` will suppress all but error messages. It is worth noting that if you are using SoS Notebook, all logging messages will be sent to the side panel if the side panel is open.<jupyter_code>!touch a.txt

%run -v3
[10]
[20]
input: 'a.txt'
[30]
[40]<jupyter_output><empty_output><jupyter_text>Text-based progress bar with -v1    If you have a large workflow with lots of steps, the default output can be overwhelming. In this case you can use -v1, which not only suppress most of the `INFO` messages, but also introduces a text-based progress bar from which you can learn the progress of the workflow easily.<jupyter_code>!touch a.txt

%run -v1
[10]
[20]
input: 'a.txt'
[30]
[40]<jupyter_output>[32m[[0m[32m#[0m[32m#[0m[32m#[0m[32m#[0m[32m][0m 4 steps processed (4 jobs completed)<jupyter_text>As a convenience feature that we do not really recommend, you can set a default verbosity level for your notebook using magic `%set`. For example,<jupyter_code>%set -v0<jupyter_output>Set sos options to "-v0"<jupyter_text>will set verbosity level to `ERROR` so you would not see any output if you rerun the above workflow<jupyter_code>%run
[10]
[20]
input: 'a.txt'
[30]
[40]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10093457943925234, 'fraction_numerical': 0.027102803738317756, 'mean_word_length': 5.170028818443804, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '662331', 'license': 'MIT', 'n_tokens_mistral': 695, 'n_tokens_neox': 654, 'n_words': 302, 'path': 'src/user_guide/verbosity_and_jobs.ipynb', 'repo_name': 'andrewrocks/sos-docs', 'size': '2140'}