Skip to main content

Easy way to log data!.

Project description

Outlog

Outlog it's a library to make logging a simple task!.

I'm a lazy python user, the times that i do logging on my apps it's hard to do, a lot of useless code just for print some things or saving to files.
Really simple to use.!

How-to Install

git clone https://github.com/zsendokame/outlog; cd outlog; pip install -e .
# Or
pip install outlog

How-to Use

This is a little tutorial!

import outlog

outlog.createLogger('logFile.log')
outlog.save('logLevel', 'logMessage')

outlog.log('logLevel', 'logMessage')
'''
Levels:
debug
info
warn
error
critical
'''

@outlog.catch
def functionWithAnError():
    1 / 0
'''
[ 00:00:00 ] ERROR: There's an error with functionWithAnError() on line 3: division by zero
'''

print('And i still alive!')

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

Outlog-1.0.4.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file Outlog-1.0.4.tar.gz.

File metadata

  • Download URL: Outlog-1.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for Outlog-1.0.4.tar.gz
Algorithm Hash digest
SHA256 add3ddefae503d5600da63545fcb2825139881e64ea066481633713956a16c3b
MD5 65c1d734251c6cba264cbba69bb64e4b
BLAKE2b-256 40a673d7f7e4ea9ddebfe69ff0148552040547188172240f7eb71e8ba8ff2e17

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