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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for simple-loggers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3b73a31929253c48680ad69ad56a262294198b59ddc34ec69c80a9530cc72dda
MD5 2f18c9c80c9464ecb1c37ef764a05f70
BLAKE2b-256 391693a5d1750fbdeed1de5149f8a4d9069f1bbf2ca6c585e8e85e86a5d98e0e

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