Metadata-Version: 2.1
Name: duallog
Version: 0.11
Summary: Parallel logging to console and logfile
Home-page: https://github.com/acschaefer/duallog
Author: Alexander Schaefer
Author-email: acschaefer@users.noreply.github.com
Maintainer: Alexander Schaefer
License: MIT
Description: # The duallog package
        
        Python package to enable simultaneous logging to console and logfile.
        
        ## How to install duallog?
        
        To install the duallog package, perform the following two steps:
        1. Download and unpack this repository.
        2. From within the repository folder, run `python setup.py install`.
        
        ## How to use duallog?
        
        Using duallog is very simple, as illustrated in the following minimal example script.
        
        ```python
        # Import the duallog package to set up simultaneous logging to screen and console.
        import duallog
        
        # Import the logging package to generate log messages.
        import logging
        
        # Set up dual logging and tell duallog where to store the logfiles.
        duallog.setup('logtest')
        
        # Generate some log messages.
        logging.warn('This function illustrates how to use the duallog package.')
        logging.warn('All messages are sent to both the console and a logfile in the folder \"{}\".'.format(logdir))
        logging.warn('The logfile\'s name encodes the time when the program was started.')
        logging.warn('The duallog package treats different log levels differently.')
        logging.debug('Debug messages like this are written to the logfile, but not printed on screen.')
        logging.info('Info messages like this get the same treatment.')
        logging.warn('Warn messages like this one are important. They are both sent to the logfile and shown on screen.')
        logging.error('The same holds for error messages like this one ...')
        logging.critical('... and for critical messages, of course.')
        logging.warn('Have a look at the debug and info messages the logfile in the folder \"{}\".'.format(logdir))
        logging.warn('They are not sent to the screen in order not to clutter the display.')
        ```
        
        The corresponding output on the console and in the logfile looks like this:
        
        ![](./duallog_screenshot.png)
        [Duallog screenshot](https://github.com/acschaefer/duallog/blob/master/duallog_screenshot.png)
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
