Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

1.0

History Node

1.0a1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
easy_logger-1.0.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Jul 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting