Skip to content

Commit 4149bde

Browse files
committed
Update README.md
1 parent a132497 commit 4149bde

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ node.stop()
8585

8686
It is essential to clean everything up, so make sure to call `node.cleanup()` once you've finished all of your tests.
8787

88+
Nodes support python logging system, so if you have configured logging
89+
in your tests you can use it to redirect postgres logs to yours.
90+
To do that just use `use_logging` argument like here:
91+
92+
```python
93+
node = testgres.get_new_node('master', use_logging=True)
94+
```
95+
96+
Also you can find working configuration sample for logging in tests.
97+
8898
Please see `testgres/tests` directory for replication configuration example.
8999
> Note: you could take a look at [`pg_pathman`](https://github.com/postgrespro/pg_pathman) to get an idea of `testgres`' capabilities.
90100

0 commit comments

Comments
 (0)