cloudru-qa-logging-context 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudru_qa_logging_context-1.0.0.dist-info/METADATA +396 -0
- cloudru_qa_logging_context-1.0.0.dist-info/RECORD +11 -0
- cloudru_qa_logging_context-1.0.0.dist-info/WHEEL +4 -0
- cloudru_qa_logging_context-1.0.0.dist-info/entry_points.txt +2 -0
- cloudru_qa_logging_context-1.0.0.dist-info/licenses/LICENSE +202 -0
- logging_context/__init__.py +4 -0
- logging_context/handler.py +236 -0
- logging_context/hooks.py +23 -0
- logging_context/naming.py +88 -0
- logging_context/plugin.py +486 -0
- logging_context/py.typed +1 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: cloudru-qa-logging-context
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Разделение контекста логов при параллельном запуске автотестов
|
|
5
|
+
Project-URL: Repository, https://github.com/cloud-ru-tech/qa-libraries
|
|
6
|
+
Project-URL: Issues, https://github.com/cloud-ru-tech/qa-libraries/issues
|
|
7
|
+
Author-email: Алексей Кирютин <ayukiryutin@cloud.ru>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: allure,logging,pytest,testing
|
|
11
|
+
Classifier: Framework :: Pytest
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Topic :: Software Development :: Testing
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.13
|
|
18
|
+
Requires-Dist: pytest<10,>=8.4.0
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# Logging context for automated tests
|
|
22
|
+
|
|
23
|
+
[](https://pypi.org/project/cloudru-qa-logging-context/)
|
|
24
|
+
[](https://pypi.org/project/cloudru-qa-logging-context/)
|
|
25
|
+
[](https://github.com/cloud-ru-tech/qa-libraries/blob/master/LICENSE)
|
|
26
|
+
|
|
27
|
+
English | [Русский](README.ru.md)
|
|
28
|
+
|
|
29
|
+
A pytest plugin that writes each test's logs to a separate file and attaches them to
|
|
30
|
+
the Allure report.
|
|
31
|
+
|
|
32
|
+
Each test report should contain only that test's logs. With a regular
|
|
33
|
+
`FileHandler`, all tests append to one file, so attached logs include
|
|
34
|
+
messages from other tests. Parallel execution with
|
|
35
|
+
[`pytest-xdist`](https://pytest-xdist.readthedocs.io/en/stable/) also means
|
|
36
|
+
multiple processes writing to the same file. This plugin handles both cases.
|
|
37
|
+
|
|
38
|
+
- [Installation](#installation)
|
|
39
|
+
- [Skills for AI agents](#skills-for-ai-agents)
|
|
40
|
+
- [Quick start](#quick-start)
|
|
41
|
+
- [Demo projects](#demo-projects)
|
|
42
|
+
- [Where to find logs](#where-to-find-logs)
|
|
43
|
+
- [Settings](#settings)
|
|
44
|
+
- [Allure](#allure)
|
|
45
|
+
- [structlog](#structlog)
|
|
46
|
+
- [Other loggers and custom formats](#other-loggers-and-custom-formats)
|
|
47
|
+
- [Development](#development)
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
Requires Python 3.13 or later.
|
|
52
|
+
|
|
53
|
+
```shell
|
|
54
|
+
pip install cloudru-qa-logging-context
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Import the plugin as `logging_context`.
|
|
58
|
+
|
|
59
|
+
## Skills for AI agents
|
|
60
|
+
|
|
61
|
+
This library does not have its own skill yet. If your project uses other
|
|
62
|
+
libraries from this suite with [skills for AI agents](https://github.com/cloud-ru-tech/qa-libraries#skills-for-ai-agents),
|
|
63
|
+
select and enable them from your project root (requires [`uv`](https://docs.astral.sh/uv/)):
|
|
64
|
+
|
|
65
|
+
```shell
|
|
66
|
+
uvx library-skills
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For Claude Code, add `--claude`.
|
|
70
|
+
|
|
71
|
+
## Quick start
|
|
72
|
+
|
|
73
|
+
The plugin loads automatically when installed, but **does nothing** until you set
|
|
74
|
+
a log directory. One line is enough:
|
|
75
|
+
|
|
76
|
+
```toml
|
|
77
|
+
# pyproject.toml
|
|
78
|
+
[tool.pytest.ini_options]
|
|
79
|
+
logging_context_dir = "logs"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
A custom `conftest.py` is needed only for formatters that cannot be expressed as an ini string,
|
|
83
|
+
such as structlog or JSON (see below). For this test:
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
import logging
|
|
87
|
+
|
|
88
|
+
import pytest
|
|
89
|
+
|
|
90
|
+
logger = logging.getLogger("test-logger")
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pytest.fixture
|
|
94
|
+
def user():
|
|
95
|
+
logger.info("creating a user")
|
|
96
|
+
yield {"id": 1}
|
|
97
|
+
logger.info("deleting a user")
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def test_login(user):
|
|
101
|
+
logger.info("logging in as id=%s", user["id"])
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@pytest.mark.parametrize("role", ["admin", "guest"])
|
|
105
|
+
def test_roles(role):
|
|
106
|
+
logger.info("checking role %s", role)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
running `pytest` produces:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
logs/test_login.log
|
|
113
|
+
logs/test_roles[48fb048115c186ec].log
|
|
114
|
+
logs/test_roles[a81f6f2ab448a918].log
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The plugin-generated headers retain their original Russian text:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
--- logs/test_login.log
|
|
121
|
+
30.07.2026 15:21:40.776 - INFO - Запуск теста id=test_demo.py::test_login
|
|
122
|
+
30.07.2026 15:21:40.776 - INFO - creating a user
|
|
123
|
+
30.07.2026 15:21:40.778 - INFO - logging in as id=1
|
|
124
|
+
30.07.2026 15:21:40.780 - INFO - deleting a user
|
|
125
|
+
|
|
126
|
+
--- logs/test_roles[a81f6f2ab448a918].log
|
|
127
|
+
30.07.2026 15:21:40.790 - INFO - Запуск теста id=test_demo.py::test_roles[a81f6f2ab448a918] с параметрами {"role": "admin"}
|
|
128
|
+
30.07.2026 15:21:40.792 - INFO - checking role admin
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Logs are attached to the Allure report automatically when `allure-pytest` is installed.
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
## Demo projects
|
|
136
|
+
|
|
137
|
+
[`examples/`](https://github.com/cloud-ru-tech/qa-libraries/tree/master/packages/logging-context/examples) contains two ready-to-run projects with the plugin enabled. Both use
|
|
138
|
+
the same sample shop client and tests, with fixtures, parametrization,
|
|
139
|
+
an intentionally failing test, and retries. Only their log formats differ:
|
|
140
|
+
|
|
141
|
+
| Example | Log file contents |
|
|
142
|
+
|---|---|
|
|
143
|
+
| [`examples/logging`](https://github.com/cloud-ru-tech/qa-libraries/tree/master/packages/logging-context/examples/logging) | Standard library `logging`, with lines such as `INFO shop.client товар SKU-TEA — Чай листовой` |
|
|
144
|
+
| [`examples/structlog`](https://github.com/cloud-ru-tech/qa-libraries/tree/master/packages/logging-context/examples/structlog) | `structlog`, using JSON Lines |
|
|
145
|
+
|
|
146
|
+
Run commands from the example directory, such as `packages/logging-context/examples/logging`:
|
|
147
|
+
|
|
148
|
+
```shell
|
|
149
|
+
uv sync
|
|
150
|
+
rm -rf logs
|
|
151
|
+
uv run pytest -v --clean-alluredir --alluredir=allure-results
|
|
152
|
+
npx allure awesome allure-results --single-file --output allure-report
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Each test's logs remain in `logs/`, and the report is in `allure-report/index.html`. For parallel
|
|
156
|
+
runs with `pytest-xdist`, add `-n 4` to pytest. Building the report requires Node.js.
|
|
157
|
+
|
|
158
|
+
One test in each example fails intentionally, showing that a failing test's report contains
|
|
159
|
+
its own logs and that those logs explain the failure.
|
|
160
|
+
|
|
161
|
+
## Where to find logs
|
|
162
|
+
|
|
163
|
+
| File | Contents |
|
|
164
|
+
|---|---|
|
|
165
|
+
| `<test name>.log` | Test logs, including setup and teardown of all its fixtures |
|
|
166
|
+
| `fixtures_<worker_id>.log` | Logs outside tests, such as `pytest_sessionstart` or `conftest.py` imports |
|
|
167
|
+
|
|
168
|
+
Test parameters in filenames are replaced with hashes to keep names short and safe
|
|
169
|
+
regardless of parameter values. The parameters themselves appear in the first log line.
|
|
170
|
+
|
|
171
|
+
If a filename repeats, such as when retrying a failed test with
|
|
172
|
+
`pytest-rerunfailures` or when test functions in different modules share a name,
|
|
173
|
+
a numeric suffix is added. Each rerun attempt has its own file, so the report
|
|
174
|
+
shows the logs of the failed attempt:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
logs/test_login.log <- first attempt
|
|
178
|
+
logs/test_login.2.log <- second attempt
|
|
179
|
+
logs/test_login.3.log <- third attempt
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Parallel runs add a worker identifier to filenames, so tests with the same function name
|
|
183
|
+
running on different workers do not write to the same file:
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
pytest -> logs/test_login.log
|
|
187
|
+
pytest -n 2 -> logs/test_login.gw0.log
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
No log file is overwritten.
|
|
191
|
+
|
|
192
|
+
## Settings
|
|
193
|
+
|
|
194
|
+
Set all options in pytest configuration (`pyproject.toml`, `pytest.ini`, or `tox.ini`).
|
|
195
|
+
|
|
196
|
+
| Setting | Default | Description |
|
|
197
|
+
|---|---|---|
|
|
198
|
+
| `logging_context_dir` | — | Log directory. **The plugin is inactive until this is set.** Relative paths are resolved from `rootdir`. |
|
|
199
|
+
| `logging_context_launch_id` | — | Subdirectory within `logging_context_dir`, such as a CI run identifier. Must be a single path component. Can be overridden by a CLI option or environment variable; see below. |
|
|
200
|
+
| `logging_context_loggers` | root | Loggers to collect records from. Defaults to root, including third-party libraries. |
|
|
201
|
+
| `logging_context_level` | `INFO` | Minimum record level, as a name (`DEBUG`) or number. |
|
|
202
|
+
| `logging_context_format` | `%(asctime)s.%(msecs)03d - %(levelname)s - %(message)s` | Log line format. |
|
|
203
|
+
| `logging_context_date_format` | `%d.%m.%Y %H:%M:%S` | Timestamp format. |
|
|
204
|
+
| `logging_context_attach_allure` | `true` | Attach log files to the Allure report. |
|
|
205
|
+
| `logging_context_attach_fixtures_log` | `true` | Attach `fixtures_<worker_id>.log` to each test. |
|
|
206
|
+
| `logging_context_log_test_header` | `true` | Start each file with the test identifier and parameters. |
|
|
207
|
+
| `logging_context_params_indent` | `-1` | JSON indentation for parameters. `-1` means a single line. |
|
|
208
|
+
|
|
209
|
+
Collect logs only from your own loggers:
|
|
210
|
+
|
|
211
|
+
```toml
|
|
212
|
+
[tool.pytest.ini_options]
|
|
213
|
+
logging_context_dir = "logs"
|
|
214
|
+
logging_context_loggers = ["test-logger", "api-client"]
|
|
215
|
+
logging_context_level = "INFO"
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
By default, logs include third-party libraries (`httpx`, `urllib3`,
|
|
219
|
+
`playwright`), which often help explain test failures. To exclude this noise,
|
|
220
|
+
list your own loggers in `logging_context_loggers`.
|
|
221
|
+
|
|
222
|
+
The default mode also captures loggers with `propagate = False`, even if created
|
|
223
|
+
after the run starts. With `logging_context_loggers` set, however,
|
|
224
|
+
you must list these loggers explicitly; they are not discovered automatically.
|
|
225
|
+
|
|
226
|
+
Test parameters appear in the header as supplied. If they contain tokens or passwords,
|
|
227
|
+
disable the header: `logging_context_log_test_header = false`.
|
|
228
|
+
|
|
229
|
+
### Launch identifier
|
|
230
|
+
|
|
231
|
+
`launch_id` often comes from CI, so you can set it outside ini configuration:
|
|
232
|
+
|
|
233
|
+
```shell
|
|
234
|
+
pytest --logging-context-launch-id="$CI_PIPELINE_ID"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```shell
|
|
238
|
+
LOGGING_CONTEXT_LAUNCH_ID="$CI_PIPELINE_ID" pytest
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Priority: command-line option → `LOGGING_CONTEXT_LAUNCH_ID` environment variable →
|
|
242
|
+
`logging_context_launch_id` in ini. Logs are stored in `<logging_context_dir>/<launch_id>/`.
|
|
243
|
+
|
|
244
|
+
## Allure
|
|
245
|
+
|
|
246
|
+
No extra setup is needed: when `allure-pytest` is installed and `--alluredir` is set,
|
|
247
|
+
the plugin attaches the test log and fixtures log to each test. Disable this with
|
|
248
|
+
`logging_context_attach_allure = false`, or disable only the fixtures log with
|
|
249
|
+
`logging_context_attach_fixtures_log = false`.
|
|
250
|
+
|
|
251
|
+
`allure-pytest` **also attaches its own** `log` attachment to each test.
|
|
252
|
+
To avoid duplicate log attachments, disable one using `--allure-no-capture` or
|
|
253
|
+
`logging_context_attach_allure = false`.
|
|
254
|
+
|
|
255
|
+
## structlog
|
|
256
|
+
|
|
257
|
+
Route `structlog` through standard library logging and set the formatter with the
|
|
258
|
+
`pytest_logging_context_configure`:
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
# conftest.py
|
|
262
|
+
import structlog
|
|
263
|
+
|
|
264
|
+
structlog.configure(
|
|
265
|
+
processors=[
|
|
266
|
+
structlog.stdlib.add_logger_name,
|
|
267
|
+
structlog.stdlib.add_log_level,
|
|
268
|
+
structlog.stdlib.ProcessorFormatter.wrap_for_formatter,
|
|
269
|
+
],
|
|
270
|
+
logger_factory=structlog.stdlib.LoggerFactory(),
|
|
271
|
+
wrapper_class=structlog.stdlib.BoundLogger,
|
|
272
|
+
cache_logger_on_first_use=True,
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def pytest_logging_context_configure(handler):
|
|
277
|
+
handler.setFormatter(
|
|
278
|
+
structlog.stdlib.ProcessorFormatter(
|
|
279
|
+
processor=structlog.processors.JSONRenderer(ensure_ascii=False),
|
|
280
|
+
foreign_pre_chain=[
|
|
281
|
+
structlog.stdlib.add_logger_name,
|
|
282
|
+
structlog.stdlib.add_log_level,
|
|
283
|
+
],
|
|
284
|
+
),
|
|
285
|
+
)
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
```toml
|
|
289
|
+
# pyproject.toml
|
|
290
|
+
[tool.pytest.ini_options]
|
|
291
|
+
logging_context_dir = "logs"
|
|
292
|
+
logging_context_log_test_header = false
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
`logging_context_log_test_header = false` keeps the file valid
|
|
296
|
+
JSON Lines.
|
|
297
|
+
|
|
298
|
+
The hook also accepts `config`; add it to the signature if needed. A complete working example
|
|
299
|
+
is in [`examples/structlog`](https://github.com/cloud-ru-tech/qa-libraries/tree/master/packages/logging-context/examples/structlog).
|
|
300
|
+
|
|
301
|
+
Test:
|
|
302
|
+
|
|
303
|
+
```python
|
|
304
|
+
import structlog
|
|
305
|
+
|
|
306
|
+
log = structlog.get_logger("test-logger")
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def test_creates_shipment():
|
|
310
|
+
log.info("shipment created", shipment_id=77)
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
`logs/test_creates_shipment.log`:
|
|
314
|
+
|
|
315
|
+
```json
|
|
316
|
+
{"shipment_id": 77, "event": "shipment created", "logger": "test-logger", "level": "info"}
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Bound context is preserved:
|
|
320
|
+
|
|
321
|
+
```python
|
|
322
|
+
def test_retries_request():
|
|
323
|
+
log = structlog.get_logger("test-logger").bind(request_id="req-51")
|
|
324
|
+
log.warning("unexpected response")
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
```json
|
|
328
|
+
{"request_id": "req-51", "event": "unexpected response", "logger": "test-logger", "level": "warning"}
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
With `foreign_pre_chain`, third-party logs using standard library `logging` go to
|
|
332
|
+
the same file in the same format:
|
|
333
|
+
|
|
334
|
+
```python
|
|
335
|
+
def test_mixes_loggers():
|
|
336
|
+
structlog.get_logger("test-logger").info("from structlog")
|
|
337
|
+
logging.getLogger("legacy.client").warning("from stdlib")
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
`logs/test_mixes_loggers.log`:
|
|
341
|
+
|
|
342
|
+
```json
|
|
343
|
+
{"event": "from structlog", "logger": "test-logger", "level": "info"}
|
|
344
|
+
{"event": "from stdlib", "logger": "legacy.client", "level": "warning"}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
## Other loggers and custom formats
|
|
348
|
+
|
|
349
|
+
Any logger that writes through standard library `logging` works. For `loguru`, use its
|
|
350
|
+
standard `InterceptHandler`; the rest is the same.
|
|
351
|
+
|
|
352
|
+
Use `pytest_logging_context_configure` for any formatter that cannot be expressed
|
|
353
|
+
as an ini string:
|
|
354
|
+
|
|
355
|
+
```python
|
|
356
|
+
# conftest.py
|
|
357
|
+
import json
|
|
358
|
+
import logging
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class JsonFormatter(logging.Formatter):
|
|
362
|
+
def format(self, record: logging.LogRecord) -> str:
|
|
363
|
+
return json.dumps(
|
|
364
|
+
{
|
|
365
|
+
"time": self.formatTime(record),
|
|
366
|
+
"level": record.levelname,
|
|
367
|
+
"logger": record.name,
|
|
368
|
+
"message": record.getMessage(),
|
|
369
|
+
},
|
|
370
|
+
ensure_ascii=False,
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def pytest_logging_context_configure(handler):
|
|
375
|
+
handler.setFormatter(JsonFormatter())
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
## Development
|
|
379
|
+
|
|
380
|
+
This library is developed in the [qa-libraries](https://github.com/cloud-ru-tech/qa-libraries) monorepo
|
|
381
|
+
alongside the other `cloudru-qa-*` libraries. You need [`uv`](https://docs.astral.sh/uv/), GNU Make
|
|
382
|
+
and [`checkmake`](https://github.com/checkmake/checkmake);
|
|
383
|
+
run the commands from the repository root:
|
|
384
|
+
|
|
385
|
+
```shell
|
|
386
|
+
make sync # dependencies for all libraries from uv.lock
|
|
387
|
+
make test-logging-context # tests for this library
|
|
388
|
+
make typecheck-logging-context # mypy for this library
|
|
389
|
+
make check # formatting, Ruff, mypy, and tests for the whole suite
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
All checks must pass without errors or warnings. Tests run on Python 3.13 and 3.14.
|
|
393
|
+
Each version uses a separate environment: `make sync test-logging-context PYTHON_VERSION=3.14`.
|
|
394
|
+
|
|
395
|
+
Create a release with the Git tag `logging-context/v<version>`. The tag version must match the version
|
|
396
|
+
in `packages/logging-context/pyproject.toml`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
logging_context/__init__.py,sha256=e56rVYTxiKcyY-RYSGnOMgqhcEQRe-9h3A0-rcOmXiU,221
|
|
2
|
+
logging_context/handler.py,sha256=YqkKw0rTbsFF1Ez1SkZlR0T-bTGVAUSywG39pqswBhs,7931
|
|
3
|
+
logging_context/hooks.py,sha256=M_GjJ3Wj-NK91woa_BulFvk0XvPP8VCyL84X6FYErs8,655
|
|
4
|
+
logging_context/naming.py,sha256=v2WEEMa4Gu3Vwddq1WY1mhXiGE6AUTYMRWp2ioZnJSM,2933
|
|
5
|
+
logging_context/plugin.py,sha256=7kumEWe938kTKM33uj_4K6yS-pD8nRaZZKBEbCedEdI,16872
|
|
6
|
+
logging_context/py.typed,sha256=hX8e_n7eEN-XCFXp-0DSLCxxy9hHO4Sczj3VNIVXt_k,77
|
|
7
|
+
cloudru_qa_logging_context-1.0.0.dist-info/METADATA,sha256=8tIpwSXaCszGVTLtTaPJ6QSLpWhdhmMLiIzBQn6pHZU,13958
|
|
8
|
+
cloudru_qa_logging_context-1.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
9
|
+
cloudru_qa_logging_context-1.0.0.dist-info/entry_points.txt,sha256=ztXgO9QS1E3YxWa1G0h3IauSjzOK_XdX3vLxB2J2Gy4,52
|
|
10
|
+
cloudru_qa_logging_context-1.0.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
11
|
+
cloudru_qa_logging_context-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|