Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

The logging init model

Project description

1. install

pip install --user loginit==<version>

2. upgrade

pip install --user -U loginit==<version>   # upgrade

3. uninstall

pip uninstall --user loginit

4. How to use

#!/usr/bin/env python

from loginit import init_logger
import  logging

if __name__ == "__main__":
    import platform
    if platform.system() == "Windows":
    elif platform.system() == "Linux":
        init_logger()"this is info test !!!")
    logging.debug("this is debug test !!!")
    logging.warning("this is warning test !!!")
    logging.error("this is error test !!!")
    logging.critical("this is critical test !!!")
        raise Exception("this exception test !!!")
    except Exception as e:

Project details

Download files

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

Files for loginit, version 1.2.8
Filename, size File type Python version Upload date Hashes
Filename, size LogInit-1.2.8.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page