Easy Logger ----------- A python package for logging easily.
Project description
A python package for using logger easily.
Installation
TODO
Usage
from elogger import Logger
logger = Logger.get_stream_logger()
logger.info('logger')
API
class Logger(object):
def init_config(self, level=logging.INFO):
"""Init logging baseConfig
:param int level: logging level
"""
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
"""
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-0.1.tar.gz
(1.4 kB
view details)
File details
Details for the file easy_logger-0.1.tar.gz
.
File metadata
- Download URL: easy_logger-0.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1f4c377064469858cfd8171db275ce5931f78f2aaa5da875e9e13c491f828b5d
|
|
MD5 |
0fef061a8203be6ac0494d93d3a8cdbc
|
|
BLAKE2b-256 |
393493b244b0e6507c06fa381ba5e604cc40c60cf7fc071040a4fffb19c02833
|