Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

json supported easy debugger for python, in files. can also read.

Project description

filelog 1.0.2

Hello.

I am an easy debugger which prints into files. I can also read. In case you need me ever.

Simplicity within a certain complexity.

Install

pip install filelog

Documentation

param: filename

Name of the file. The extension .log will be added. Default: debug ENV name: READABLE_GLOBAL_VARIABLE_NAME

param: debug

If set True, prints what's going on. Default: True

param: json

If set True, it will enable json conversion Default: True

param: callback

If set (a function), the function gets executed with the path of created file. Default: None

Example

from filelog import Writer, Reader

Writer() >> {'allah': 'birdir'}
# creates a file called debug.log and saves into
>>> {"allah": "birdir"}

test = Reader() # reads from debug.log
print test
>>> {'allah': 'birdir'}

# delete callback
import os
Writer(callback: lambda x: os.remove(x)) >> {'test': 'callback'} # deletes the file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for filelog, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size filelog-1.0.2-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size filelog-1.0.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page