A wrapper for the logging module in python.
Project description
rclog
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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
rclog-1.3.1-py3-none-any.whl
(5.3 kB
view hashes)