Skip to content

Commit 64e94a1

Browse files
committed
Fix usage documentation
1 parent ff36c3c commit 64e94a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ handler.setFormatter(Logfmter())
3434

3535
logging.basicConfig(handlers=[handler])
3636

37-
logger.error("hello", extra={"alpha": 1}) # at=ERROR msg=hello alpha=1
38-
logger.error({"token": "Hello, World!"}) # at=ERROR token="Hello, World!"
37+
logging.error("hello", extra={"alpha": 1}) # at=ERROR msg=hello alpha=1
38+
logging.error({"token": "Hello, World!"}) # at=ERROR token="Hello, World!"
3939
```
4040

4141
**Customize**
@@ -65,7 +65,7 @@ handler.setFormatter(CustomLogfmter())
6565

6666
logging.basicConfig(handlers=[handler])
6767

68-
logger.error({"example": True}) # at=ERROR example=yes
68+
logging.error({"example": True}) # at=ERROR example=yes
6969
```
7070

7171
## Development

0 commit comments

Comments
 (0)