Skip to content

Commit 7ab6383

Browse files
committed
Add formatter to README example
1 parent a2c186a commit 7ab6383

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ client = ...
4343
logger = logging.getLogger("my_logger")
4444
logger.setLevel(logging.INFO)
4545
handler = MqttHandler(client, "my_topic")
46+
handler.setFormatter(logging.Formatter("%(message)s"))
4647
logger.addHandler(handler)
4748
```
4849

0 commit comments

Comments
 (0)