Создание файлов конфигураци
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.11.tar.gz
(14.4 kB
view details)
Built Distribution
logsmal-0.0.11-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file logsmal-0.0.11.tar.gz
.
File metadata
- Download URL: logsmal-0.0.11.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e8cc9b56776ed0e38e9964f1a17f06cb8fcd7889a26ce28778eeb6f65bad029 |
|
MD5 | ce101ba5b971f6106f0310ebdd0aa443 |
|
BLAKE2b-256 | 6aad67eb3ebb2de00f9c0d78ebc6726711150f5435981ccb333c4b286818197c |
File details
Details for the file logsmal-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: logsmal-0.0.11-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04f6adb55eac1916cf933569bd5414e3828c9dfc1f93d2f5d6ee2f7fbc65945 |
|
MD5 | d2f5c45a94f0281258c84ae8c89dd62a |
|
BLAKE2b-256 | fb9d78a9a7da190d40792ccba19c451138a35b791e7ccd2eb15d495636949a80 |