Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fa031f6ee | ||
|
|
f38cce1c1d | ||
|
|
52dd1e7b73 | ||
|
|
661a182655 | ||
|
|
d803de312d | ||
|
|
57a36d64f1 |
@@ -22,6 +22,10 @@ This is a pip package that can be installed into any project and covers the foll
|
|||||||
- script_handling: pid lock file handling, abort timer
|
- script_handling: pid lock file handling, abort timer
|
||||||
- string_handling: byte format, datetime format, hashing, string formats for numbrers, double byte string format, etc
|
- string_handling: byte format, datetime format, hashing, string formats for numbrers, double byte string format, etc
|
||||||
|
|
||||||
|
## UV setup
|
||||||
|
|
||||||
|
uv must be [installed](https://docs.astral.sh/uv/getting-started/installation/)
|
||||||
|
|
||||||
## How to publish
|
## How to publish
|
||||||
|
|
||||||
Have the following setup in `project.toml`
|
Have the following setup in `project.toml`
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ class Log:
|
|||||||
self.logger = logging.getLogger(log_name)
|
self.logger = logging.getLogger(log_name)
|
||||||
# set maximum logging level for all logging output
|
# set maximum logging level for all logging output
|
||||||
self.logger.setLevel(logging.DEBUG)
|
self.logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
# self.handlers = []
|
||||||
# console logger
|
# console logger
|
||||||
self.__console_handler(log_level_console)
|
self.__console_handler(log_level_console)
|
||||||
# file logger
|
# file logger
|
||||||
@@ -74,8 +76,8 @@ class Log:
|
|||||||
formatter_file_handler = logging.Formatter(
|
formatter_file_handler = logging.Formatter(
|
||||||
(
|
(
|
||||||
'[%(asctime)s.%(msecs)03d] '
|
'[%(asctime)s.%(msecs)03d] '
|
||||||
'[%(pathname)s:%(funcName)s:%(lineno)d] '
|
|
||||||
'[%(name)s:%(process)d] '
|
'[%(name)s:%(process)d] '
|
||||||
|
'[%(pathname)s:%(funcName)s:%(lineno)d] '
|
||||||
'<%(levelname)s> '
|
'<%(levelname)s> '
|
||||||
'%(message)s'
|
'%(message)s'
|
||||||
),
|
),
|
||||||
Reference in New Issue
Block a user