Easy Logger
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.
Release files for easy_logger 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy_logger-1.0.tar.gz | 2.1 kB | Details |
Release files / easy_logger-1.0.tar.gz
| Download URL | easy_logger-1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93b03165f26e0ea6011db81f2ec579b35e2f9aac3153c7594f7da63d545f87c1
|
|
BLAKE2b-256 checksum How to use checksums |
cc4a532c2d80d8e522cc7c5ae6909ab7956c19e1724aefe6e16ce4535302a34a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |