Skip to main content

nest common logger

Project description

Installation

install as pip

pip install nest-logger==1.1.0

Usage

  • 导包并进行赋值操作

    :param path: 日志存储的路径,绝对路径, 必填

    :param level: 日志等级 ,默认info

    :param rotation: 每天几点新增日志, 默认 00:00分割日志

    :param retention: 日志保留最长时间, 默认7天

    :param compression: 日志压缩格式,默认zip

    :param traceback: 回溯日志, 默认True

    >>> from pylogger import logger
    >>> log = logger.logrecord("/var/logs/nest")
    
  • 使用日志

    >>> log.info("this is info test")
    >>> log.debug("this is debug test")
    

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

nest-logger-1.1.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file nest-logger-1.1.0.tar.gz.

File metadata

  • Download URL: nest-logger-1.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for nest-logger-1.1.0.tar.gz
Algorithm Hash digest
SHA256 665b14ff0aac23ec0c358e943000b802ec15936f10edeea37b188a07e4e7f62d
MD5 333b9610e047737efc3772b23fa735d7
BLAKE2b-256 921f3e854e41d889c9d179a34b3a1120ffb839e428b9b6626568597dd5a6ce38

See more details on using hashes here.

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