Package: dj-log-config-helper
Copyright (c) 2016 Harvard University / iCommonsPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description: ====================Dj-Log-Config-Helper====================Centralize management of simple log configuration across Django projectsThe ``dj_log_config_helper.configure_installed_apps_logger`` method configures either a console or file logger with a list of all the top-level app module packages being installed in ``INSTALLED_APPS``.  Use this method in your ``settings.py`` file.Meta----* Author: Jaime Bermudez* Email:  jaime_bermudez@harvard.edu* Maintainer: Harvard University Academic Technology* Email: tlt-ops@g.harvard.edu* Status: active development, stable, maintainedInstallation------------Simply run the following from within a virtualenv::$ pip install git+https://github.com/Harvard-University-iCommons/dj-log-config-helperRunning the tests-----------------Via make::$ make testUsage-----Import the log config function in ``settings.py``::from dj_log_config_helper import configure_installed_apps_loggerDisable Django's default logging::LOGGING_CONFIG = NoneAt the end of ``settings.py`` configure a simple console logger::configure_installed_apps_logger(logging.INFO)Or, configure a verbose file logger::configure_installed_apps_logger(logging.INFO, verbose=True, filename='django-project.log')You can also log additional packages that are not part of INSTALLED_APPS::configure_installed_apps_logger(logging.INFO, additional_packages=['py.warnings'])Platform: anyClassifier: Environment :: Web EnvironmentClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: MIT LicenseClassifier: Operating System :: OS IndependentClassifier: Programming Language :: PythonClassifier: Topic :: Internet :: WWW/HTTP :: Dynamic ContentClassifier: Topic :: Software Development :: Libraries :: Python ModulesClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2.5Classifier: Programming Language :: Python :: 2.6Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.2Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5