Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6561a45

Browse files
committed
unite two logging sections in README.md
1 parent2d6f1c3 commit6561a45

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)

[8]ページ先頭

©2009-2025 Movatter.jp