Skip to content

Releases: MattLimb/pylogformats

Release v1.0.0

28 Jul 13:27
e581c13
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.2...v1.0.0

0.2.2

23 Jun 22:25
Compare
Choose a tag to compare

pyLogFormats 0.2.1

Updated

  • Incremented Version Number
  • Removed build_wheel from pyproject.toml as it is an unused key

0.2.1

23 Jun 22:07
f06099b
Compare
Choose a tag to compare

pyLogFormats 0.2.1

Updated

  • Switched to pyproject.toml for modern Python Packaging

0.2.0

13 Mar 15:38
978dc6e
Compare
Choose a tag to compare

pyLogFormats 0.2.0

Updated

  • Added message formatting. Allows for this behaviour:
logging.debug("Logging to %s","some_file.txt")

0.1.2

04 Feb 23:15
Compare
Choose a tag to compare

pyLogFormats 0.1.2

Updated

  • README
  • Changed lnumber to levelno for easier readability

0.1.1

04 Feb 23:09
Compare
Choose a tag to compare

pyLogFormat 0.1.1

Supported Formats:

{
    "time": "2021-02-04T23:01:00.781Z", 
    "name": "root", 
    "pid": 15504, 
    "level": 40, 
    "msg": "TEST", 
    "hostname": "Sophie", 
    "v": 0
}
  • JSONFormat
{
    "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)
{
    "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

python3 -m pip install pyLogFormat