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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-loggers-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c272c4033f037dd17f41523ddc3bc9b040eeb6b61c3fee7842a61113e9f0abec
MD5 5f9fcb5e39500de904564ac4f27345c5
BLAKE2b-256 f05982f86fe4f9f0bf1c38ae940218de1ff665aa37893390183cd7e2e35bed48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_loggers-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7a8052de021cbc98287c6e88a872241498532bc5bb2792a9702c77e1615ce16d
MD5 b121302120819cdcc23395fec246c884
BLAKE2b-256 601013ddab1924350e2df7c3f1f1e41bc9c046cef34e75c6db82cc2bc0bc7004

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