Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshiya0503/meta-logging
logging tool for python using meta-programing
https://github.com/yoshiya0503/meta-logging
Last synced: about 2 months ago
JSON representation
logging tool for python using meta-programing
- Host: GitHub
- URL: https://github.com/yoshiya0503/meta-logging
- Owner: yoshiya0503
- Created: 2014-05-18T08:49:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-21T16:36:10.000Z (over 10 years ago)
- Last Synced: 2024-04-11T22:52:39.179Z (9 months ago)
- Language: Python
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
meta-logging
============logging tool for python using meta-programing
### quick start
from meta_logging import log@log()
class Hoge(object):def hoge(self):
return 1 + 1def foo(self):
return "foo"hoge = Hoge()
hoge.hoge() # => 2014-05-18 17:57:43,442 DEBUG ... [class : method] ===> [Hoge : hoge]
hoge.foo() # => 2014-05-18 17:57:43,442 DEBUG ... [class : method] ===> [Hoge : foo]using color logging...
from color_log import ColorLog
import logginglog = ColorLog(level=logging.DEBUG)
log.info("hoge")
log.warning("hoge")
log.error("hoge")
log.debug("hoge")
log.critical("hoge")### color logging sample
![sample](https://github.com/yoshiya0503/meta-logging/raw/master/sample/sample.png)