Skip to main content

ZPower Logger

Project description

ZPlogger

Zpower日志工具

Usage

from zplogger.logger import Logger 

logger = Logger(
    file=__file__,
    user='yulong',
    project="shouma",
    server="127.0.0.1",
    debug=True)

log_msg = '''
      this is a test msg for test logger in multiplelines.

      Stack messag: 
       xxxx
       more stack info..
   '''
# warning message
logger.warn(sys._getframe().f_lineno, log_msg)

# info message
logger.info(sys._getframe().f_lineno, log_msg)

# error message
logger.error(sys._getframe().f_lineno, log_msg)

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

zplogger-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

zplogger-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

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