Skip to main content

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.

Source Distribution

LogInit-1.2.8.tar.gz (2.7 kB view hashes)

Uploaded Source

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