Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carsonslovoka/carson-logging
modified from origin python logging
https://github.com/carsonslovoka/carson-logging
Last synced: 7 days ago
JSON representation
modified from origin python logging
- Host: GitHub
- URL: https://github.com/carsonslovoka/carson-logging
- Owner: CarsonSlovoka
- License: apache-2.0
- Created: 2019-09-04T01:38:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T08:10:16.000Z (about 5 years ago)
- Last Synced: 2024-10-08T03:44:29.812Z (about 1 month ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===================
CLogging
===================.. sectnum::
Install
===============* ``pip install carson-logging``
import packages
===============.. code-block:: python
from Carson.Class.Logging import CLogging
USAGE
===============Basic
-----------.. code-block:: python
log = CLogging("log_name", "temp_dir/xxx.log")
log.info('info msg')
log.debug('info msg')
log.warning('info msg')
log.error('info msg')
log.critical('info msg')
Advanced
----------.. code-block:: python
my_define_format = logging.Formatter(u'%(asctime)s|%(levelname)s|%(name)s|%(message)s')
log = CLogging("log_name", "C:dir/xxx.log", logging.INFO, 'w', my_define_format, stream_handler_on=True, stream_level=logging.ERROR)Issues
===============* `Issues `_