Skip to main content

modify format of msg to log center of ys.

Project description

####1、 变更记录 v0.0.8

  1. 增加consumer_tag 功能, 以便在rabit web 页面显示消费者
  2. 增加发送日志至日志中心功能
from ys_service import *


@ys_host.register("YS.机票.国内.退票.wiken.DEBUG", prefetch=1, consumer_tag="wiken")
def refund(context):
    print("bigin:", context.text)
    re = context.send_log_to_center(
        context=context,
        project="wikenTest",
        module="test1",
        user="7921",
        level="error",
        return_msg="log_center_test",
        field1="111111",
        field2="自愿",
        field3="国内",
    )

    print("result:", re)
    context.ack()    


with ys_host:
    ys_host.start()

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

py_host-0.0.8.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_host-0.0.8-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file py_host-0.0.8.tar.gz.

File metadata

  • Download URL: py_host-0.0.8.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for py_host-0.0.8.tar.gz
Algorithm Hash digest
SHA256 2069f2e68363b4dc802ecc30d5236db731918120e5f503e4c3573bb3b633b6cf
MD5 5810e70cc923977101d6b56a78e586d4
BLAKE2b-256 a5ce6a33db7b6dcede3c1476acdea764ba624622b3ddecdaf2ecb9e041478597

See more details on using hashes here.

File details

Details for the file py_host-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: py_host-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for py_host-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 92c872c6e51b5633aceab1a37e9952ed333cb0dd7af0f7c0b8f880206ad11102
MD5 6715584bb3262e82888880e2a704df5e
BLAKE2b-256 f50c35b7ed61c80e86f5ed23fddb7fd76911d3f2cf3cb419116be339ba4ff3d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page