Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for zplogger, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size zplogger-0.1.2-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size zplogger-0.1.2.tar.gz (2.3 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page