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)

or

import logaid

logaid.info('hello world')
logaid.warning('hello world')
logaid.error('hello world')
logaid.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.3.tar.gz (3.8 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logaid-1.2.3.tar.gz
  • Upload date:
  • Size: 3.8 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.3.tar.gz
Algorithm Hash digest
SHA256 0d6d1349848eedcbb8be5fe2c9bd445819f58cfc8f76284d12309ad4b91211b9
MD5 221ff0f74591992b938e19f221bd65ba
BLAKE2b-256 76fcc8b1f5bd37bc5767cd3d41d8f6119c70a0afe59cfce9a96fcaf5c9d580b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logaid-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 596b575a539e929da96cc5610b0d7c5b05d078fdaf81caf593c1bd863bc1efad
MD5 899134a70558436213f851b4ef91fc08
BLAKE2b-256 a2e3303698388e857f4928b835cf679102ebb53d5e2f99875564c378308c817d

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