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)
open super print
from logaid import log
log.init(print_pro=True)
print("Hello World")
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')
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)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6f6ae793cf9d6bf8a6dac7ec7130ecd691042a7a01ebef213bcf427b3a566fd
|
|
| MD5 |
972484344917cafa6dc5fba3af698688
|
|
| BLAKE2b-256 |
f387ab8610f24eb4c4bd452d9467c8ddc9e7cea5b54691ef42a07e2cd38684fa
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab7c6a582024c53561785ca40ae1c692d7a731d1fe536719000d70fcfe0d4f8
|
|
| MD5 |
310ff88254da1c735f1c27024b0db5d7
|
|
| BLAKE2b-256 |
87880f76a4d00085a0404de94fefec3d8e0e078f477fc3f9dfb5cb366e4a0f9a
|