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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-loggers-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0a98a53b185b1796376099ba3cd07b82b6258a38647b69e12585e1a11bbed10a
MD5 f90067e2331043deadf4b808f9d4b450
BLAKE2b-256 b5b395c3fe45e4ae9a0ce5eb70833a84f773075d3f3f0c56b2a73fbfa77b8cc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_loggers-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3a50b03670dadad4fe0ce81c6651444ce270f99e058d887498daf8c32e75d3d
MD5 91a365a5287de8ac6c3b6625e99623fe
BLAKE2b-256 c20b20e4ab7bb71ddbe62f1cd65b911d4d2d5d326324e050756c5649c7d21519

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