Skip to main content

A Simple Logger Package

Project description

A Simple Logger Package

Installation

pip install simple-loggers

Usage

from simple_loggers import SimpleLogger

logger = SimpleLogger(colored=True)
logger.debug('debug message')
logger.info('info message')
logger.warning('warn message')
logger.error('error message')

logger2 = SimpleLogger(name='TEST2', colored=False, logfile='out.log')
logger2.debug('debug message')
logger2.info('info message')
logger2.warning('warn message')
logger2.error('error message')

logger3 = SimpleLogger(name='TEST3', level='info', fmt='%(asctime)s %(levelname)s: %(message)s')
logger3.debug('debug message')
logger3.info('info message')
logger3.warning('warn message')
logger3.error('error 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

simple-loggers-1.0.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

simple_loggers-1.0.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file simple-loggers-1.0.4.tar.gz.

File metadata

  • Download URL: simple-loggers-1.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for simple-loggers-1.0.4.tar.gz
Algorithm Hash digest
SHA256 14918d3a70a6a0cfca688883a090c5a74a9703d9eca65d96458af02407a34e69
MD5 d4216408ba5100d4ac261de31ba6f9d2
BLAKE2b-256 67f90b6ce9fd98a173cf117620af209ad808388bc66d8e4199ef517709688a37

See more details on using hashes here.

File details

Details for the file simple_loggers-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: simple_loggers-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for simple_loggers-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f8698da792a50b80c8c93d0172bb3ac45a4c4d5be56ec74089c9e86b606f396c
MD5 e0aab12e36f4b457878cccbe777fd4ec
BLAKE2b-256 aee6f62ebe76bbdc738b3fa44b8723fb296aa6e0d9eb7a7806c76a3683296f1f

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