Skip to main content

A package for atomic evaluation tools and utilities

Project description

Quick Start

  • import
    from best_logger import *
    
  • register file handler
    def register_logger(mods=[], non_console_mods=[], base_log_path="logs", auto_clean_mods=[]):
        """ mods: 需要注册的模块名列表,同时向终端和文件输出
            non_console_mods: 需要注册的模块名列表,只向文件输出
            base_log_path: 日志文件存放的根目录
            auto_clean_mods: 需要自动删除旧日志的模块名列表
    """
    
  • begin logging
    from best_logger import *
    register_logger(mods=["abc"])
    print_dict({
        "a": 1,
        "b": 2,
        "c": 3,
    }, mod="abc")
    

启动web display

  • 进入网页渲染子模块 cd web_display

  • 安装nvm wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

  • 重启终端 重启终端

  • 安装 16 nvm install 16

  • 使用 16 nvm use 16

  • 安装组件 npm install -g concurrently serve npm install

  • 测试程序

    from best_logger import *
    register_logger(mods=["abc"])
    print_dict({
        "a": 1,
        "b": 2,
        "c": 3,
    }, mod="abc")
    
  • 运行网页渲染

    bash start_web.sh
    

Upload to PyPI

twine upload dist/*

rm -rf build rm -rf dist python setup.py sdist bdist_wheel

uv pip install /mnt/data_cpfs/fuqingxu/code_dev/BeyondAgent/third_party/best-logger/dist/best_logger-0.0.1.tar.gz

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

beast_logger-0.0.1.tar.gz (584.5 kB view details)

Uploaded Source

Built Distribution

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

beast_logger-0.0.1-py3-none-any.whl (591.1 kB view details)

Uploaded Python 3

File details

Details for the file beast_logger-0.0.1.tar.gz.

File metadata

  • Download URL: beast_logger-0.0.1.tar.gz
  • Upload date:
  • Size: 584.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for beast_logger-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2bee40cdae085ec78c7fe07980d4780db0f84aa7a5691addede0d31320e3e37f
MD5 b9440845aab5c2fb259f3204ec64f70b
BLAKE2b-256 f3ce042e4132b8083d0db90e40d78dc36ac4b3392715d450c7a9aa27fd68eb55

See more details on using hashes here.

File details

Details for the file beast_logger-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: beast_logger-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 591.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for beast_logger-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78d05d3b44dce22777f870a5dab429f07ae270aa7da4e6e0bcc3cf5ce23f51b9
MD5 8992e6aef72a667959538317a874d43c
BLAKE2b-256 3af1a4822f6b853b8129821824558850a9d90dbcf381d56a05ede570f9189c41

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