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
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
Outlog-1.0.4.tar.gz
(2.3 kB
view hashes)