Skip to main content

A wrapper for the logging module in python.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

rclog

PyPI PyPI - License

pdm-managed GitHub Workflow Status

Packaging to the logging module in python

Interface

Provide set_log and get_log

set_log

set_log can be configured in various ways, and there are the following configuration options:

set_log can be configured in various ways, and there are the following configuration options:

Args:
    handlers (list):_description_
    formats (list, optional): _description_. Defaults to [ "default", ].
    exist_loggers (bool, optional): _description_. Defaults to True.

Keyword Args:
    "{format_name}_format" (str, optional):_description_. Defaults to "<%(asctime)s>[%(levelname)s]%(name)s:%(message)s".
    "{format_name}_datefmt" (str, optional): _description_. Defaults to "%Y-%m-%d %H:%M:%S".
    "{handler_name}_class" (str, optional): _description_. Defaults to "Console".
    "{handler_name}_formatter" (str, optional): _description_. Defaults to "default".
    "{handler_name}_level" (str, optional): _description_. Defaults to None.
    "{handler_name}_filename" (str, optional): _description_. Defaults to None.
    "{handler_name}_maxBytes" (int, optional): _description_. Defaults to None.
    "{handler_name}_backupCount" (int, optional): _description_. Defaults to None.
    "{handler_name}_encoding" (str, optional): _description_. Defaults to "utf8"

Args:
    handlers (list):_description_
    formats (list, optional): _description_. Defaults to [ "default", ].
    exist_loggers (bool, optional): _description_. Defaults to True.

Keyword Args:
    "{format_name}_format" (str, optional):_description_. Defaults to "<%(asctime)s>[%(levelname)s]%(name)s:%(message)s".
    "{format_name}_datefmt" (str, optional): _description_. Defaults to "%Y-%m-%d %H:%M:%S".
    "{handler_name}_class" (str, optional): _description_. Defaults to "Console".
    "{handler_name}_formatter" (str, optional): _description_. Defaults to "default".
    "{handler_name}_level" (str, optional): _description_. Defaults to None.
    "{handler_name}_filename" (str, optional): _description_. Defaults to None.
    "{handler_name}_maxBytes" (int, optional): _description_. Defaults to None.
    "{handler_name}_backupCount" (int, optional): _description_. Defaults to None.
    "{handler_name}_encoding" (str, optional): _description_. Defaults to "utf8".

get_log

The get_log function can get the logger object, you can set the name, the file name that the default is called

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

rclog-1.4.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

rclog-1.4.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rclog-1.4.0.tar.gz.

File metadata

  • Download URL: rclog-1.4.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.3 CPython/3.11.5

File hashes

Hashes for rclog-1.4.0.tar.gz
Algorithm Hash digest
SHA256 533502408c040eb6b70dfa3b31c9d6afc5de0a36c624b0d832c827ea3974fca0
MD5 521a9b777b62867e1f4cc8932b8f0b5d
BLAKE2b-256 83dfaa30c4b17961dd68017c408b0029cd9181d1847fdf4ec9ae0f87f45c80d1

See more details on using hashes here.

File details

Details for the file rclog-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: rclog-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.3 CPython/3.11.5

File hashes

Hashes for rclog-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1885c1faa233c840494fa3e9f5a65e254188f4abf6cd1776dbc0a4c864c608e4
MD5 f17ddb2c67194d0960b9fa5501fc07ae
BLAKE2b-256 05acc8efa66f3b6eab9ea8e007da303c13f0ce13c0f194b787c2c434e3b9770d

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