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 Python 3

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