Metadata-Version: 1.1
Name: diagnostics
Version: 0.1.0
Summary: Alternative to Python's module `cgitb` with template inspired by Nette and Django
Home-page: https://github.com/miso-belica/diagnostics
Author: Michal Belica
Author-email: miso.belica@gmail.com
License: Copyright 2013 Michal Belica

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Description: ===========
        Diagnostics
        ===========
        Module for logging of `detailed traceback
        <http://miso-belica.github.com/diagnostics/log-example.html>`_ as HTML page.
        Unexpected exceptions are catched and logged for further audit. Exceptions
        in diagnostic's exception handler are properly handled and logged
        (but formatted only as standard Python traceback). Usage is simple as code below
        
        .. code-block:: python
        
            from diagnostics import exception_hook
        
            if __name__ == '__main__':
                # you have to create "log/" directory next to file that is your main module
                exception_hook.enable()
        
        .. code-block:: python
        
            from diagnostics import exception_hook
            from diagnostics.storages import FileStorage
        
            if __name__ == '__main__':
                # or simply set your own storage
                directory_path = "/path/to/your/log/directory/with/html/tracebacks"
                exception_hook.enable(storage=FileStorage(directory_path))
        
        Installation
        ------------
        From PyPI
        ::
        
            pip install diagnostics
        
        or from git repo
        ::
        
            pip install git+git@github.com:miso-belica/diagnostics.git
        
        Tests
        -----
        Run tests via
        
        .. code-block:: bash
        
            $ cd tests
            $ python -tt -Wall -B -3 -m unittest discover
            $ python3 -tt -Wall -B -m unittest discover
        
        Copyright 2013 Michal Belica
        
        
        .. :changelog:
        
        Changelog for diagnostics module
        ================================
        
        0.1.0 (2013-02-13)
        ------------------
        - First public release.
        
Keywords: debug,cgitb,traceback
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Bug Tracking
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
