Skip to main content

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")
    

Release files for nest-logger 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nest-logger 1.1.0
File Size Uploaded
nest-logger-1.1.0.tar.gz 2.1 kB Details

Release files / nest-logger-1.1.0.tar.gz

Download URL nest-logger-1.1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
665b14ff0aac23ec0c358e943000b802ec15936f10edeea37b188a07e4e7f62d
BLAKE2b-256 checksum
How to use checksums
921f3e854e41d889c9d179a34b3a1120ffb839e428b9b6626568597dd5a6ce38
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page