Skip to main content

logger_app

Documentation

The documentation is hosted at https://github.com/BingerYang/logger_app

Installation

pip install logger_app

Usage

example:

# -*- coding: utf-8 -*-

from logger_app import FormatterRule, LoggerApp
from flask import request, Flask

app = Flask(__name__)
app.config['PROPAGATE_EXCEPTIONS'] = False  # 设置是否传递异常 , 如果为True, 则flask运行中的错误会显示到网页中, 如果为False, 则会输出到文件中


# FormatterRule.CB_TAG_MAP = dict(path=lambda: request.path, md5=lambda: request.host_url)


@app.route('/')
def index():
    # num = 1 / 0
    app.logger.error('this is a error')
    return "index"


if __name__ == '__main__':
    app.logger = LoggerApp(__name__, fmt=FormatterRule(style='json')).create_logger()

    app.run(debug=True)

Metadata

Release files for logger-app 0.0.1.20040217

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

Source distribution (sdist)

Source distribution for logger-app 0.0.1.20040217
File Size Uploaded Provenance
logger_app-0.0.1.20040217.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for logger-app 0.0.1.20040217
File Interpreter ABI Platform
logger_app-0.0.1.20040217-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / logger_app-0.0.1.20040217.tar.gz

Download URL logger_app-0.0.1.20040217.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f24e1a96efc347e4f4667329b6a82fd0eaf31df52d81ef3638a3642187268d2
BLAKE2b-256 checksum
How to use checksums
6d12d270a456364efd679cbda0ce8c3c560c2a7d603f9472421c5b915fca8459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

Release files / logger_app-0.0.1.20040217-py3-none-any.whl

Download URL logger_app-0.0.1.20040217-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
907ff38056c63cbf7f2c43bcd3b24ab38ef2eea060552003b401226f068cb6c4
BLAKE2b-256 checksum
How to use checksums
30bd44c1ffc19d1baae93cc9a19a89401d4be021b0797f5977ce24aed445adc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

Security for logger-app 0.0.1.20040217

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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