fynnay / neatlog Goto Github PK
View Code? Open in Web Editor NEWA simple but fancy looking logger, so You don't have to worry about setting it up.
License: MIT License
A simple but fancy looking logger, so You don't have to worry about setting it up.
License: MIT License
It's because colorama is imported even when not on windows.
Implement the fix from commit 1adbf8e
Using strings is cool and all but constants are cooler
neatlog/colorama/ansitowin32.py:49: DeprecationWarning: invalid escape sequence \[ANSI_CSI_RE = re.compile('\001?\033\[((?:\d|;)*)([a-zA-Z])\002?') # Control Sequence Introducer
neatlog/colorama/ansitowin32.py:50: DeprecationWarning: invalid escape sequence \]ANSI_OSC_RE = re.compile('\001?\033\]((?:.|;)*?)(\x07)\002?') # Operating System Command
Updating https://github.com/tartley/colorama should fix this
logs neatlog.py instead of file that called the logger
In one application of neatlog I did a monkeypatch of the inspect module. I don't remember exactly why, but it might be worth looking into:
ipython/ipython#1456
ipython/ipython#2232
Use 133-209 findsource code as monkeypatch for inspect.findsource
monkeypatch code
class Manager():
class Manager(object):
def __init__(self):
self.loggers = {}
def get(self, name):
return self.loggers.get(loggerName)
def create(self, name, logger):
self.loggers[loggerName] = logger
return self.get(name)
# global funcs
def getLogger(name):
logger = MANAGER.get(name)
if logger is None:
logger = MANAGER.create(name)
or something like that
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.