Создание файлов конфигураци
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.9.tar.gz
(14.2 kB
view details)
Built Distribution
logsmal-0.0.9-py3-none-any.whl
(10.8 kB
view details)
File details
Details for the file logsmal-0.0.9.tar.gz
.
File metadata
- Download URL: logsmal-0.0.9.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a585fb45ccb96f5378f0d8fd576fef5469a1a1d007c0aa16905965abc24a4d |
|
MD5 | c29b64d1eef188b340e5a52c08623515 |
|
BLAKE2b-256 | d837ee8858b92b3d0ede89a2e3c1fafb3d34f6ba3d390223ec70a0a564fb7586 |
File details
Details for the file logsmal-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: logsmal-0.0.9-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 311f69f0f361c444e1be0cfac7026c4d15f07cd2f31996f8e5409eaa4c28c084 |
|
MD5 | e9daa9e40001b00727c2be4f68e8f57f |
|
BLAKE2b-256 | bf63a7bc55659fec3d0ac373a5eafd689e0bd80cf2b4bd0e8b9b35495c2e68ea |