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 hashes)

Uploaded Source

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