Coder Social home page Coder Social logo

lggr's People

Contributors

isaac-ped avatar peterldowns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lggr's Issues

.format issue with python versions < 2.7

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

UDP Support

There should be a function that broadcasts the message over UDP/Datagram at a certain server.

Indentation is broken on stack trace

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.

can not run with python 3.6

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'

Continuous Integration testing

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.

Move state properties to config

enabled, keep_history, and suppress_errors should be stored in the config dictionary and accessed via @property setters and getters.

Stack trace is broken

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?

ZeroMQ Support

It would be awesome if there were a coroutine that supported sending the strings to a ZeroMQ server somewhere.

Add test cases

If this is ever going to go anywhere, I should probably start testing it. Best way to do that is with code.

Working Unicode support

No thought is given at all to Unicode support right now. Opening files and writing unicode characters fails.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.