Skip to main content

A wrapper for the logging module in python.

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:

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.3.4.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

rclog-1.3.4-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

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