peterldowns / lggr Goto Github PK
View Code? Open in Web Editor NEWPython Logging for Humans
Home Page: peterldowns.github.com/lggr
License: MIT License
Python Logging for Humans
Home Page: peterldowns.github.com/lggr
License: MIT License
Python 2.7 + allows:
'{}, {}, {}'.format('a', 'b', 'c') # 2.7+ only
I am on version 2.6.4; and so, changed your code to, for example:
'{0}, {1}, {2}'.format('a', 'b', 'c')
There
There should be a function that broadcasts the message over UDP/Datagram at a certain server.
To reproduce: python bin/test.py
.
Fri Aug 3 03:04:14 2012 (CRITICAL) Easy as a, b, c!
In /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lggr/__init__.py, line 279:
filename = os.path.normcase(co.co_filename)
if filename == _srcfile:
f = f.f_back # get out of this logging file
continue
sinfo = traceback.extract_stack(f)
> fname, lno, fnc, cc, i = inspect.getframeinfo(f, context=10)
cc[i] = '>' + cc[i] # mark the exact line
code = cc[i]
rv = (fname, lno, fnc, code, cc, sinfo)
break
The >
to indicate which line should take the place of one of the first spaces; or, in the case of a tab, have nothing special happen. Markers shouldn't change the indentation of the code they're highlighting.
windows 10 python 3.6
Traceback (most recent call last):
File "D:\Python3\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "D:\Python3\lib\runpy.py", line 109, in get_module_details
import(pkg_name)
File "S:\test.py", line 1, in
import lggr
File "D:\Python3\lib\site-packages\lggr_init.py", line 11, in
from lggr.coroutine import coroutine, coroutine_process, coroutine_thread
File "D:\Python3\lib\site-packages\lggr\coroutine.py", line 4, in
import Queue
ModuleNotFoundError: No module named 'Queue'
Set up some sort of continuous integration server (maybe Jenkins?) to automatically run tests. Get one of those fancy images that shows the build status.
enabled
, keep_history
, and suppress_errors
should be stored in the config
dictionary and accessed via @property
setters and getters.
To reproduce: python bin.py
.
Fri Aug 3 03:04:14 2012 (CRITICAL) Easy as a, b, c!
In /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lggr/__init__.py, line 279:
filename = os.path.normcase(co.co_filename)
if filename == _srcfile:
f = f.f_back # get out of this logging file
continue
sinfo = traceback.extract_stack(f)
> fname, lno, fnc, cc, i = inspect.getframeinfo(f, context=10)
cc[i] = '>' + cc[i] # mark the exact line
code = cc[i]
rv = (fname, lno, fnc, code, cc, sinfo)
break
That's not right. It should show the line within test.py
. Maybe an off-by-one error?
It would be awesome if there were a coroutine that supported sending the strings to a ZeroMQ server somewhere.
If this is ever going to go anywhere, I should probably start testing it. Best way to do that is with code.
No thought is given at all to Unicode support right now. Opening files and writing unicode characters fails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.