json-logging-python
json-logging-python copied to clipboard
Cloud-native distributed Python logging library to emit JSON log that can be easily indexed by logging infrastructure
The user-configurable names for correlation-id fields allow identifiers created by other analysis/tracing tools to be used as input. Making the output field configurable allows conforming on that end as well.
Is it possible to disable some fields in output natively? F.e. `{"written_at": "2023-08-02T09:31:58.988Z", "written_ts": 1690968718988650000, "msg": "", "type": "log", "logger": "logger", "thread": "MainThread", "level": "INFO", "module": "send_log", "line_no": 107, "caller":...
Bumps [flask](https://github.com/pallets/flask) from 1.0 to 2.3.2. Release notes Sourced from flask's releases. 2.3.2 This is a security fix release for the 2.3.x release branch. Security advisory: https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq, CVE-2023-30861 Changes: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-2...
Connexion support is limited to flask Is there a way to use this lib with aiohttp? Reference: https://github.com/bobbui/json-logging-python/blob/master/json_logging/framework/connexion/__init__.py#L39-L40
### Depshield will be deprecated on Monday December 12th *Please install our new product, [Sonatype Lift](https://lift.sonatype.com/getting-started?utm_source=github&utm_medium=depshield) with advanced features*
I have a top level function that has a whole bunch of meta-info. The top level function calls lower level functions that don't need, and thus aren't passed, that info....
Hi, I noticed the project doesn't have a copyright notice. It only contains the Apache 2.0 license. You can read the [appendix](https://github.com/bobbui/json-logging-python/blob/master/LICENSE#L179-L202) at the end of the license to understand...
The path is found in a different location, as starlette Request is used.
In python3.12 we get deprecation errors due to the use of 'naive' timestamps from utcnow. (see https://github.com/python/cpython/issues/103857) Replace with timezone.utc See https://github.com/python/cpython/issues/81669 See https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated
I've installed and imported `json_logging`. I then initialised the module like this: ```python import json_logging from app.routers.jobs import jobs load_dotenv() app = FastAPI() app.include_router(jobs.router, tags=["jobs"]) json_logging.init_fastapi(enable_json=True) ``` but this returns...