Skip to content

Commit 6561a45

Browse files
committed
unite two logging sections in README.md
1 parent 2d6f1c3 commit 6561a45

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,19 @@ By default, `cleanup()` removes all temporary files (DB files, logs etc) that we
4343

4444
> Note: context managers (aka `with`) call `cleanup()` automatically.
4545
46+
Nodes support python logging system, so if you have configured logging
47+
in your tests, you can use it to redirect postgres logs to yours.
48+
49+
To do that, just use `use_logging` argument:
50+
51+
```python
52+
node = testgres.get_new_node('master', use_logging=True)
53+
```
54+
55+
You can find working configuration example for logging in `tests/test_simple.py`.
4656

47-
### Overview
57+
58+
### Examples
4859

4960
Here is an example of what you can do with `testgres`:
5061

@@ -104,18 +115,6 @@ To stop the server, run:
104115
node.stop()
105116
```
106117

107-
### Logging
108-
109-
Nodes support python logging system, so if you have configured logging
110-
in your tests you can use it to redirect postgres logs to yours.
111-
To do that just use `use_logging` argument like here:
112-
113-
```python
114-
node = testgres.get_new_node('master', use_logging=True)
115-
```
116-
117-
You can find working configuration example for logging in `tests/test_simple.py`.
118-
119118

120119
### Backup & replication
121120

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy