From 3d3d8f302088aba7b06a8c7eab293db245dc989d Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 26 Jul 2023 14:37:49 +0100 Subject: [PATCH] log level may now be set with environment variable --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 53257c2..89876e2 100644 --- a/README.md +++ b/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