<commit_before># Configuration

Appier can be configured through environment variables. The following would configure the logger to print only messages whose level is "critical" or above:

```bash
LEVEL=INFO python hello_world.py
```

The following are all the available configuration variables:

* `LEVEL` (`str`) - Defines the level of verbodity for the loggers (eg: `DEBUG`)
* `FILE_LOG` (`bool`) - Enables the rotating file based logging (eg: `/var/log/name.log`, `/var/log/name.err`)
* `LOGGING` (`list`) - Defines a sequence of logging handlers configuration to be loaded (eg: 'complex' example project)
* `SERVER` (`str`) - The server that will host the app (eg `netius`)

The configuration can also be provided by creating an "appier.json" in the root of your project directory:

```json
{
    "LEVEL" : "WARNING"
}
```

You can also create a configuration file in your home directory, also named "appier.json":
<commit_msg>Update configuration.md<commit_after># Configuration

Appier can be configured through environment variables. The following would configure the logger to print only messages whose level is "critical" or above:

```bash
LEVEL=INFO python hello_world.py
```

The following are all the available configuration variables:

* `LEVEL` (`str`) - Defines the level of verbodity for the loggers (eg: `DEBUG`)
* `FILE_LOG` (`bool`) - Enables the rotating file based logging (eg: `/var/log/name.log`, `/var/log/name.err`)
* `LOGGING` (`list`) - Defines a sequence of logging handlers configuration to be loaded (eg: 'complex' example project)
* `SERVER` (`str`) - The server that will host the app (eg: `netius`)

The configuration can also be provided by creating an "appier.json" in the root of your project directory:

```json
{
    "LEVEL" : "WARNING"
}
```

You can also create a configuration file in your home directory, also named "appier.json":

{'fraction_non_alphanumeric': 0.1088, 'fraction_numerical': 0.0, 'mean_word_length': 4.772307692307693, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '4782571', 'n_tokens_mistral': 543, 'n_tokens_neox': 516, 'n_words': 243}