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(__name__)
logger.info('logger')
API
class Logger(object):
def get_logger(name):
"""The same as get_stream_logger."""
pass
def get_stream_logger(name):
"""Get logger which has add streamHandler. Output log message to stream.
:param str name: logger name
"""
pass
def get_file_logger(name, filepath):
"""Get logger which has add fileHandler. Output log message to specify file.
:param str name: logger name
:param str filepath: the log file path
"""
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
:param str filepath: the log file path
"""
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.0.tar.gz
(2.1 kB
view details)
File details
Details for the file easy_logger-1.0.tar.gz
.
File metadata
- Download URL: easy_logger-1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93b03165f26e0ea6011db81f2ec579b35e2f9aac3153c7594f7da63d545f87c1 |
|
MD5 | c902ab005f3662c57d4a272939567232 |
|
BLAKE2b-256 | cc4a532c2d80d8e522cc7c5ae6909ab7956c19e1724aefe6e16ce4535302a34a |