change README.md

This commit is contained in:
2020-11-09 22:18:00 +01:00
parent 1a8e7ccb92
commit 4726c17366

View File

@@ -172,8 +172,7 @@ w = Watch(
rec=False, rec=False,
auto_add=False) auto_add=False)
pyinotifyd.add_watch( pyinotifyd.add_watch(watch=w)
watch=w)
``` ```
## Logging ## Logging
@@ -197,14 +196,10 @@ setLoglevel(INFO, logname="daemon")
Send log messages to the local syslog server. Send log messages to the local syslog server.
```python ```python
# Enable logging to local syslog server (/dev/log). Use *address* to specify a different target. # Enable logging to local syslog server (/dev/log). Use *address* to specify a different target.
enableSyslog( enableSyslog(loglevel=INFO, address="/dev/log")
loglevel=INFO,
address="/dev/log")
# Enable syslog per logname # Enable syslog per logname
enableSyslog( enableSyslog(lglevel=INFO, name="daemon")
loglevel=INFO,
name="daemon")
``` ```
# Examples # Examples