Skip to content

Commit 89533eb

Browse files
committed
updated logger path to custom_components.pyscript
1 parent 9028b45 commit 89533eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ unless the [Logger](/integrations/logger/) is enabled at least for level `info`,
131131
logger:
132132
default: info
133133
logs:
134-
homeassistant.components.pyscript: info
134+
custom_components.pyscript: info
135135
```
136136
</div>
137137

@@ -608,7 +608,7 @@ The [Logger](/integrations/logger/) component can be used to specify the logging
608608
below the configured level will not appear in the log. Each log message function uses a log name of
609609
the form:
610610
```yaml
611-
homeassistant.components.pyscript.file.FILENAME.FUNCNAME
611+
custom_components.pyscript.file.FILENAME.FUNCNAME
612612
```
613613
where `FUNCNAME` is the name of the top-level Python function (e.g., the one called by a trigger or
614614
service), defined in the script file `FILENAME.py`. That allows you to set the log level for each
@@ -618,8 +618,8 @@ functions that the top-level Python function calls. For example, these settings:
618618
logger:
619619
default: info
620620
logs:
621-
homeassistant.components.pyscript.file: info
622-
homeassistant.components.pyscript.file.my_scripts.my_function: debug
621+
custom_components.pyscript.file: info
622+
custom_components.pyscript.file.my_scripts.my_function: debug
623623
```
624624
will log all messages at `info` or higher (ie: `log.info()`, `log.warning()` and `log.error()`), and
625625
inside `my_function` defined in the script file `my_scripts.py` (and any other functions it calls)

0 commit comments

Comments
 (0)