A python package for logging easily
Project description
A python package for logging easily.
Installation
- ::
$ pip install easy_logger
Usage
from easy_logger import Logger
logger = Logger.get_logger()
logger.info('logger')
API
class Logger(object):
def get_stream_logger(name):
"""Get logger which has add streamHandler. Output log message to stream.
:param str name: logger name
"""
pass
def get_logger(name):
"""The same as get_stream_logger."""
pass
def get_file_logger(name, filepath):
"""Get logger which has add fileHandler. Output log message to specify file.
:param str name: logger name
"""
pass
def get_both_logger(name, filepath):
"""Get logger which has both add streamHandler and fileHandler.
Output log message to stream and specify file.
:param str name: logger name
"""
pass
Better
If you feel anything wrong, feedbacks or pull requests are welcomed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_logger-1.0a1.tar.gz
(1.6 kB
view hashes)