Skip to main content

A tiny logging tool

Project description

Security Status

logging4

A tiny logging tool

install

$pip install --upgrade logging4 

usage

import sys
import logging4

logger = logging4.Logger(name="MyLogger")

formatter = '[[time]] - [[name]] - [[level_name]] - [[msg]]'

# add/del channel
logger.add_channel(filename='log.txt', level=logging4.WARNING)
logger.add_channel(filename=sys.stdout, level=logging4.ERROR, formatter=formatter)
logger.add_channel(filename='log2.txt', level=logging4.INFO)
logger.del_channel(filename='log2.txt')

use logger:

logger.debug('logger debug message')
logger.info('logger info message')
logger.warning('logger warning message')
logger.error('logger error message')
logger.critical('logger critical message')

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

logging4-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

logging4-0.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file logging4-0.0.2.tar.gz.

File metadata

  • Download URL: logging4-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for logging4-0.0.2.tar.gz
Algorithm Hash digest
SHA256 123428fbf5bbe686a56e1ba9d841cec83144d8e1c27a43fbdfb2f879ed685976
MD5 d555aecf81353c33799f583aecae64aa
BLAKE2b-256 89187d29b66f1a527a655d1f67731479c24f85d8f3465a278e472db9f53c07be

See more details on using hashes here.

File details

Details for the file logging4-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: logging4-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for logging4-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f04f3c340ebb5517876f13bfa3c75ba495e9e473d1d344c19372e75f5598664d
MD5 e7dc0bb94eb72ef2e9987d24173ab59a
BLAKE2b-256 b1b86c04a2434c343c1ddc9950bca0e91cd2805866a55f8054f19ce30dcea76d

See more details on using hashes here.

Supported by

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