Создание файлов конфигураци
Project description
Использование
from logsmal import logger
logger.success("Программа запущена", flag="RUN")
Создать кастомный логгер. Посмотрите все доступные аргументы
:meth:logsmal.loglevel.__init__()
from logsmal import loglevel, logger, CompressionLog
logger.MyLogger = loglevel(
title_level="[melogger]",
fileout="./log/mylog.log",
max_size_file="10kb",
console_out=False,
compression=CompressionLog.zip_file
)
Работа с уровнями логирования
from logsmal import loglevel, logger
logger.test = loglevel("TEST",
fileout="./log/log_test.log",
console_out=False,
int_level=10)
loglevel.required_level = 20
logger.test("Текстовое сообщение")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logsmal-0.0.7.tar.gz
(13.7 kB
view details)
Built Distribution
logsmal-0.0.7-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file logsmal-0.0.7.tar.gz
.
File metadata
- Download URL: logsmal-0.0.7.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2dd1fe3498f5a01432f893c61e35e82239708e22c5aff2250c6bc550d1e485b |
|
MD5 | 4a29265a6843cf1f734ec752bdb7335b |
|
BLAKE2b-256 | ca5497754212554a1a50596b57a988aa621045a0e114a907a538a7c4a3375ef8 |
File details
Details for the file logsmal-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: logsmal-0.0.7-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d44c8ef6d7d7c853a679bdac9fe9c82115f079165d373115a6cd49807d1871f |
|
MD5 | d9770e2faec4fa38071e3d43d80724b5 |
|
BLAKE2b-256 | 86241248d5775ba6ce0912ce8821dfe1c846caf119e6b3d93e9d1eeff1cf2b09 |