Skip to main content

Создание файлов конфигураци

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


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.8.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

logsmal-0.0.8-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file logsmal-0.0.8.tar.gz.

File metadata

  • Download URL: logsmal-0.0.8.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

Hashes for logsmal-0.0.8.tar.gz
Algorithm Hash digest
SHA256 1eb25cb5b2a36701c9c75974d7f51ebca0d315179ba8cfd8bf715dee2e54bcdf
MD5 3e159a2357a346a457a82f130ae812f0
BLAKE2b-256 23ce06b1dc24ea1f914042d89da8918c5f8203b5e1fc8a28e46b40fa37e102b1

See more details on using hashes here.

File details

Details for the file logsmal-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: logsmal-0.0.8-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

Hashes for logsmal-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 742e030b0e7aec5a69269ce28b32d16071f9e8d8cf4ed5e1b11a68ae8fece5f3
MD5 02bd1ad9635a06bc1ac4dcb48d17441f
BLAKE2b-256 6d64c3629cd3c6b3187da85682b74bb28f3a8f90c637cba572cf537c55a841f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page