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

Uploaded Source

Built Distribution

logsmal-0.0.7-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for logsmal-0.0.7.tar.gz
Algorithm Hash digest
SHA256 f2dd1fe3498f5a01432f893c61e35e82239708e22c5aff2250c6bc550d1e485b
MD5 4a29265a6843cf1f734ec752bdb7335b
BLAKE2b-256 ca5497754212554a1a50596b57a988aa621045a0e114a907a538a7c4a3375ef8

See more details on using hashes here.

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

Hashes for logsmal-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3d44c8ef6d7d7c853a679bdac9fe9c82115f079165d373115a6cd49807d1871f
MD5 d9770e2faec4fa38071e3d43d80724b5
BLAKE2b-256 86241248d5775ba6ce0912ce8821dfe1c846caf119e6b3d93e9d1eeff1cf2b09

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