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.

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page