Remove logging levels restrictions (#538)

* Fixes #537: Remove release mode logging levels restrictions;

* Add information about log's logging levels in the README;
This commit is contained in:
Benjamin Bouvier
2018-10-02 19:45:23 +02:00
committed by Dan Gohman
parent e8fc612dc2
commit 0b3d3ac880
7 changed files with 22 additions and 6 deletions

View File

@@ -130,6 +130,22 @@ protection. Just something to think about.
</details>
<details>
<summary>Log configuration</summary>
Cranelift uses the `log` crate to log messages at various levels. It doesn't
specify any maximal logging level, so embedders can choose what it should be;
however, this can have an impact of Cranelift's code size. You can use `log`
features to reduce the maximum logging level. For instance if you want to limit
the level of logging to `warn` messages and above in release mode:
```
[dependency.log]
...
features = ["release_max_level_warn"]
```
</details>
<details>
<summary>Building the documentation</summary>