Pylogformats

Latest version: v1.0.0

Safety actively analyzes 685507 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

What's Changed
* Preparing For V1.0 Release by MattLimb in https://github.com/MattLimb/pylogformats/pull/3
* Release V1 by MattLimb in https://github.com/MattLimb/pylogformats/pull/4
* Bump pypa/gh-action-pypi-publish from 1.5.0 to 1.5.1 by dependabot in https://github.com/MattLimb/pylogformats/pull/5
* Bump actions/setup-python from 3 to 4 by dependabot in https://github.com/MattLimb/pylogformats/pull/6
* Bump furo from 2022.4.7 to 2022.6.21 in /docs by dependabot in https://github.com/MattLimb/pylogformats/pull/7
* Bump pip from 22.1.2 to 22.2.1 in /.github/workflows by dependabot in https://github.com/MattLimb/pylogformats/pull/8
* Bump poetry from 1.1.13 to 1.1.14 in /.github/workflows by dependabot in https://github.com/MattLimb/pylogformats/pull/10
* Bump myst-parser from 0.17.2 to 0.18.0 in /docs by dependabot in https://github.com/MattLimb/pylogformats/pull/11
* Bump pyupgrade from 2.37.2 to 2.37.3 by dependabot in https://github.com/MattLimb/pylogformats/pull/14
* Bump urllib3 from 1.26.10 to 1.26.11 by dependabot in https://github.com/MattLimb/pylogformats/pull/15
* Bump virtualenv from 20.15.1 to 20.16.2 by dependabot in https://github.com/MattLimb/pylogformats/pull/16
* Bump sphinx from 4.5.0 to 5.1.1 in /docs by dependabot in https://github.com/MattLimb/pylogformats/pull/9
* Bump nox-poetry from 1.0.0 to 1.0.1 in /.github/workflows by dependabot in https://github.com/MattLimb/pylogformats/pull/12
* Bump virtualenv from 20.14.1 to 20.16.2 in /.github/workflows by dependabot in https://github.com/MattLimb/pylogformats/pull/13

New Contributors
* dependabot made their first contribution in https://github.com/MattLimb/pylogformats/pull/5

**Full Changelog**: https://github.com/MattLimb/pylogformats/compare/0.2.2...v1.0.0

0.2.2

0.2.1

Updated

- Switched to `pyproject.toml` for modern Python Packaging

0.2.0

Updated

- Added message formatting. Allows for this behaviour:

python
logging.debug("Logging to %s","some_file.txt")

0.1.2

Updated
- README
- Changed lnumber to levelno for easier readability

0.1.1

Supported Formats:

- BunyanFormat (https://github.com/trentm/node-bunyan)
json
{
"time": "2021-02-04T23:01:00.781Z",
"name": "root",
"pid": 15504,
"level": 40,
"msg": "TEST",
"hostname": "Sophie",
"v": 0
}

- JSONFormat
json
{
"logger": "root",
"timestamp": "2021-02-04T23:01:46.435011",
"message": "TEST",
"level": "ERROR",
"levelno": 40,
"function": "<module>",
"process": {
"number": 13316,
"name": "MainProcess"
},
"thread": {
"number": 10704,
"name": "MainThread"
},
"v": 1
}

- AdvJSONFormat (For Verbose JSON Logging)
json
{
"logger": "root",
"timestamp": "2021-02-04T23:02:52.522958",
"rtimestamp": "2021-02-04T23:02:37.518800",
"message": "TEST",
"level": "ERROR",
"levelno": 40,
"location": {
"pathname": "<FULL_PATH>\\test_logger.py",
"module": "test_logger",
"filename": "test_logger.py",
"function": "<module>",
"line": 16
},
"process": {
"number": 2300,
"name": "MainProcess"
},
"thread": {
"number": 12516,
"name": "MainThread"
},
"v": 1
}


Install

sh
python3 -m pip install pyLogFormat

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.