Skip to main content

A log aid for you.

Project description

LogAid

A log aid for you.

Installation

pip install logaid

Usage

just print

from logaid import log

log.info('hello world')
log.warning('hello world')
log.error('hello world')
log.fatal('hello world',123,{},[],False)

image

open super print

from logaid import log
log.init(print_pro=True)

print("Hello World")

image

auto_save

from logaid import log
log.init(level='DEBUG',save=True)

log.info('hello world')

save as filename and not print

from logaid import log
log.init(level='DEBUG',filename='cs.log',show=False)

log.info('hello world')

define format

from logaid import log
log.init(level='INFO',format='%(asctime)s %(levelname)s %(pathname)s %(lineno)d: %(message)s')

log.info('hello world')

image

define color

from logaid import log
color = {
    'DEBUG':'gray',
    'INFO':'green',
    'WARNING':'yellow',
    'ERROR':'red',
    'FATAL':'violet',
}
log.init(level='DEBUG',color=color)

log.debug('hello world')
log.info('hello world')
log.warning('hello world')
log.error('hello world')
log.fatal('hello world',123,{},[],False)

image

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

logaid-1.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logaid-1.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file logaid-1.2.0.tar.gz.

File metadata

  • Download URL: logaid-1.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for logaid-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c6f6ae793cf9d6bf8a6dac7ec7130ecd691042a7a01ebef213bcf427b3a566fd
MD5 972484344917cafa6dc5fba3af698688
BLAKE2b-256 f387ab8610f24eb4c4bd452d9467c8ddc9e7cea5b54691ef42a07e2cd38684fa

See more details on using hashes here.

File details

Details for the file logaid-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: logaid-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for logaid-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab7c6a582024c53561785ca40ae1c692d7a731d1fe536719000d70fcfe0d4f8
MD5 310ff88254da1c735f1c27024b0db5d7
BLAKE2b-256 87880f76a4d00085a0404de94fefec3d8e0e078f477fc3f9dfb5cb366e4a0f9a

See more details on using hashes here.

Supported by

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