Skip to main content

No project description provided

Project description

jlogr

A simple python logger written in Rust.

Logs in one format only: {timestamp} :: {log level} :: {message}

Example:

    import info from jlogr

    info("hello")

If you use the Logger class, you can save to a file.

    import Logger from jlogr

    logger = Logger("my_file.log")
    logger.info("this will go to the file")

You might be taking a large amount of logs that you'd like to buffer.

    import Logger from jlogr

    logger = Logger("my_file.log")
    for i in range(1000):
        logger.push(f"this is log of index {i}", "info")
    logger.dump()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jlogr-0.1.226.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

jlogr-0.1.226-cp39-abi3-manylinux_2_34_x86_64.whl (324.8 kB view hashes)

Uploaded CPython 3.9+ manylinux: glibc 2.34+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page