mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
log level may now be set with environment variable
This commit is contained in:
parent
82c6ced760
commit
3d3d8f3020
11
README.md
11
README.md
@ -114,15 +114,12 @@ For a full list of status codes refer to [Codes](https://github.com/obsproject/o
|
||||
|
||||
### 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
|
||||
require "obsws"
|
||||
|
||||
OBSWS::LOGGER.debug!
|
||||
...
|
||||
```powershell
|
||||
$env:OBSWS_LOG_LEVEL="DEBUG"
|
||||
```
|
||||
|
||||
### Tests
|
||||
|
Loading…
Reference in New Issue
Block a user