log level may now be set with environment variable

This commit is contained in:
onyx-and-iris 2023-07-26 14:37:49 +01:00
parent 82c6ced760
commit 3d3d8f3020

View File

@ -114,15 +114,12 @@ For a full list of status codes refer to [Codes](https://github.com/obsproject/o
### Logging ### Logging
To see the raw messages set log level to debug To enable logs set an environmental variable `OBSWS_LOG_LEVEL` to the appropriate level.
example: example in powershell:
```ruby ```powershell
require "obsws" $env:OBSWS_LOG_LEVEL="DEBUG"
OBSWS::LOGGER.debug!
...
``` ```
### Tests ### Tests