beans-logging-fastapi 6.0.0__tar.gz → 6.0.2__tar.gz
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.
- {beans_logging_fastapi-6.0.0/src/beans_logging_fastapi.egg-info → beans_logging_fastapi-6.0.2}/PKG-INFO +4 -2
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/README.md +1 -1
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.docs.txt +1 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/__init__.py +2 -1
- beans_logging_fastapi-6.0.2/src/beans_logging_fastapi/__version__.py +1 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/http_error.py +2 -2
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2/src/beans_logging_fastapi.egg-info}/PKG-INFO +4 -2
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi.egg-info/requires.txt +2 -0
- beans_logging_fastapi-6.0.0/src/beans_logging_fastapi/__version__.py +0 -1
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/.python-version +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/LICENSE.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/pyproject.toml +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.build.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.dev.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.test.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/setup.cfg +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/setup.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/_async.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/_core.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/config.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/constants.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/filters.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/formats.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/middlewares.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/mode.py +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi.egg-info/SOURCES.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi.egg-info/dependency_links.txt +0 -0
- {beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beans_logging_fastapi
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.2
|
|
4
4
|
Summary: This is a HTTP access log module for FastAPI based on 'beans-logging' package.
|
|
5
5
|
Author-email: Batkhuu Byambajav <batkhuu10@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/bybatkhuu/module-fastapi-logging
|
|
@@ -35,6 +35,7 @@ Requires-Dist: build<2.0.0,>=1.1.1; extra == "build"
|
|
|
35
35
|
Requires-Dist: twine<7.0.0,>=6.0.1; extra == "build"
|
|
36
36
|
Provides-Extra: docs
|
|
37
37
|
Requires-Dist: pylint<5.0.0,>=3.0.4; extra == "docs"
|
|
38
|
+
Requires-Dist: mkdocs<2.0.0,>=1.6.1; extra == "docs"
|
|
38
39
|
Requires-Dist: mkdocs-material<10.0.0,>=9.5.50; extra == "docs"
|
|
39
40
|
Requires-Dist: mkdocs-awesome-nav<4.0.0,>=3.0.0; extra == "docs"
|
|
40
41
|
Requires-Dist: mkdocstrings[python]<2.0.0,>=0.24.3; extra == "docs"
|
|
@@ -49,6 +50,7 @@ Requires-Dist: wheel<1.0.0,>=0.43.0; extra == "dev"
|
|
|
49
50
|
Requires-Dist: build<2.0.0,>=1.1.1; extra == "dev"
|
|
50
51
|
Requires-Dist: twine<7.0.0,>=6.0.1; extra == "dev"
|
|
51
52
|
Requires-Dist: pylint<5.0.0,>=3.0.4; extra == "dev"
|
|
53
|
+
Requires-Dist: mkdocs<2.0.0,>=1.6.1; extra == "dev"
|
|
52
54
|
Requires-Dist: mkdocs-material<10.0.0,>=9.5.50; extra == "dev"
|
|
53
55
|
Requires-Dist: mkdocs-awesome-nav<4.0.0,>=3.0.0; extra == "dev"
|
|
54
56
|
Requires-Dist: mkdocstrings[python]<2.0.0,>=0.24.3; extra == "dev"
|
|
@@ -85,7 +87,7 @@ This is a HTTP access log module for **FastAPI** based on **'beans-logging'** pa
|
|
|
85
87
|
- Install **Python (>= v3.10)** and **pip (>= 23)**:
|
|
86
88
|
- **[RECOMMENDED] [Miniconda (v3)](https://www.anaconda.com/docs/getting-started/miniconda/install)**
|
|
87
89
|
- *[arm64/aarch64] [Miniforge (v3)](https://github.com/conda-forge/miniforge)*
|
|
88
|
-
- *[Python
|
|
90
|
+
- *[Python virtual environment] [venv](https://docs.python.org/3/library/venv.html)*
|
|
89
91
|
|
|
90
92
|
[OPTIONAL] For **DEVELOPMENT** environment:
|
|
91
93
|
|
|
@@ -25,7 +25,7 @@ This is a HTTP access log module for **FastAPI** based on **'beans-logging'** pa
|
|
|
25
25
|
- Install **Python (>= v3.10)** and **pip (>= 23)**:
|
|
26
26
|
- **[RECOMMENDED] [Miniconda (v3)](https://www.anaconda.com/docs/getting-started/miniconda/install)**
|
|
27
27
|
- *[arm64/aarch64] [Miniforge (v3)](https://github.com/conda-forge/miniforge)*
|
|
28
|
-
- *[Python
|
|
28
|
+
- *[Python virtual environment] [venv](https://docs.python.org/3/library/venv.html)*
|
|
29
29
|
|
|
30
30
|
[OPTIONAL] For **DEVELOPMENT** environment:
|
|
31
31
|
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/__init__.py
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from beans_logging import logger, LogLevelEnum
|
|
1
|
+
from beans_logging import logger, LogLevelEnum, log_at
|
|
2
2
|
|
|
3
3
|
from .__version__ import __version__
|
|
4
4
|
from .config import LoggerConfigPM
|
|
@@ -14,5 +14,6 @@ __all__ = [
|
|
|
14
14
|
"LoggerConfigPM",
|
|
15
15
|
"async_log_http_error",
|
|
16
16
|
"log_http_error",
|
|
17
|
+
"log_at",
|
|
17
18
|
"async_log_at",
|
|
18
19
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "6.0.2"
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/http_error.py
RENAMED
|
@@ -35,7 +35,7 @@ async def async_log_http_error(
|
|
|
35
35
|
|
|
36
36
|
_msg = msg_format_str.format(**_http_info)
|
|
37
37
|
_logger: Logger = logger.opt(colors=True, record=True).bind(
|
|
38
|
-
http_info=_http_info,
|
|
38
|
+
http_info=_http_info, disable_std_handler=True
|
|
39
39
|
)
|
|
40
40
|
await run_in_threadpool(_logger.error, _msg)
|
|
41
41
|
return
|
|
@@ -69,7 +69,7 @@ def log_http_error(
|
|
|
69
69
|
|
|
70
70
|
_msg = msg_format_str.format(**_http_info)
|
|
71
71
|
_logger: Logger = logger.opt(colors=True, record=True).bind(
|
|
72
|
-
http_info=_http_info,
|
|
72
|
+
http_info=_http_info, disable_std_handler=True
|
|
73
73
|
)
|
|
74
74
|
_logger.error(_msg)
|
|
75
75
|
return
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beans_logging_fastapi
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.2
|
|
4
4
|
Summary: This is a HTTP access log module for FastAPI based on 'beans-logging' package.
|
|
5
5
|
Author-email: Batkhuu Byambajav <batkhuu10@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/bybatkhuu/module-fastapi-logging
|
|
@@ -35,6 +35,7 @@ Requires-Dist: build<2.0.0,>=1.1.1; extra == "build"
|
|
|
35
35
|
Requires-Dist: twine<7.0.0,>=6.0.1; extra == "build"
|
|
36
36
|
Provides-Extra: docs
|
|
37
37
|
Requires-Dist: pylint<5.0.0,>=3.0.4; extra == "docs"
|
|
38
|
+
Requires-Dist: mkdocs<2.0.0,>=1.6.1; extra == "docs"
|
|
38
39
|
Requires-Dist: mkdocs-material<10.0.0,>=9.5.50; extra == "docs"
|
|
39
40
|
Requires-Dist: mkdocs-awesome-nav<4.0.0,>=3.0.0; extra == "docs"
|
|
40
41
|
Requires-Dist: mkdocstrings[python]<2.0.0,>=0.24.3; extra == "docs"
|
|
@@ -49,6 +50,7 @@ Requires-Dist: wheel<1.0.0,>=0.43.0; extra == "dev"
|
|
|
49
50
|
Requires-Dist: build<2.0.0,>=1.1.1; extra == "dev"
|
|
50
51
|
Requires-Dist: twine<7.0.0,>=6.0.1; extra == "dev"
|
|
51
52
|
Requires-Dist: pylint<5.0.0,>=3.0.4; extra == "dev"
|
|
53
|
+
Requires-Dist: mkdocs<2.0.0,>=1.6.1; extra == "dev"
|
|
52
54
|
Requires-Dist: mkdocs-material<10.0.0,>=9.5.50; extra == "dev"
|
|
53
55
|
Requires-Dist: mkdocs-awesome-nav<4.0.0,>=3.0.0; extra == "dev"
|
|
54
56
|
Requires-Dist: mkdocstrings[python]<2.0.0,>=0.24.3; extra == "dev"
|
|
@@ -85,7 +87,7 @@ This is a HTTP access log module for **FastAPI** based on **'beans-logging'** pa
|
|
|
85
87
|
- Install **Python (>= v3.10)** and **pip (>= 23)**:
|
|
86
88
|
- **[RECOMMENDED] [Miniconda (v3)](https://www.anaconda.com/docs/getting-started/miniconda/install)**
|
|
87
89
|
- *[arm64/aarch64] [Miniforge (v3)](https://github.com/conda-forge/miniforge)*
|
|
88
|
-
- *[Python
|
|
90
|
+
- *[Python virtual environment] [venv](https://docs.python.org/3/library/venv.html)*
|
|
89
91
|
|
|
90
92
|
[OPTIONAL] For **DEVELOPMENT** environment:
|
|
91
93
|
|
|
@@ -17,6 +17,7 @@ wheel<1.0.0,>=0.43.0
|
|
|
17
17
|
build<2.0.0,>=1.1.1
|
|
18
18
|
twine<7.0.0,>=6.0.1
|
|
19
19
|
pylint<5.0.0,>=3.0.4
|
|
20
|
+
mkdocs<2.0.0,>=1.6.1
|
|
20
21
|
mkdocs-material<10.0.0,>=9.5.50
|
|
21
22
|
mkdocs-awesome-nav<4.0.0,>=3.0.0
|
|
22
23
|
mkdocstrings[python]<2.0.0,>=0.24.3
|
|
@@ -27,6 +28,7 @@ fastapi[standard]<1.0.0,>=0.99.1
|
|
|
27
28
|
|
|
28
29
|
[docs]
|
|
29
30
|
pylint<5.0.0,>=3.0.4
|
|
31
|
+
mkdocs<2.0.0,>=1.6.1
|
|
30
32
|
mkdocs-material<10.0.0,>=9.5.50
|
|
31
33
|
mkdocs-awesome-nav<4.0.0,>=3.0.0
|
|
32
34
|
mkdocstrings[python]<2.0.0,>=0.24.3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "6.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.build.txt
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.dev.txt
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/requirements/requirements.test.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/_async.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/_core.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/config.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/constants.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/filters.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/formats.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/middlewares.py
RENAMED
|
File without changes
|
{beans_logging_fastapi-6.0.0 → beans_logging_fastapi-6.0.2}/src/beans_logging_fastapi/mode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|