Metadata-Version: 2.1
Name: timelogging
Version: 2.0.5
Summary: Small Logging Library
Home-page: https://github.com/tbrodbeck/timelogging
Author: Tillmann Brodbeck
Author-email: t.b@riseup.net
License: UNKNOWN
Description: # Installation
        
        Install `timelogging` in you shell with the [Python Package Installer](https://pip.pypa.io/en/stable/):
        
        ```sh
        pip3 install timelogging
        ```
        
        # Usage
        
        ## Time Log
        
        The `log` function is designed to be a drop-in replacement for `print`:
        
        ```python3
        from timelogging import timeLog as log
        
        log('This', 'is', 'a', 'test.')
        ```
        
        And this outputs the current time before the printout:
        
        ```
        16:20:00  This is a test.
        ```
        
        ## Day Log
        
        You can also add the current day within the timestamp:
        
        ```python3
        from timelogging import timeLog as log
        
        log('This', 'is', 'a', 'test.')
        ```
        
        And this outputs the current time with the day before the printout:
        
        ```
        31 16:20:00  This is a test.
        ```
        
        ## Cutom Log
        
        Additionally, you can also create a custom formatting for the `log` function. This method also helps avoiding to log unnecessary import imformation of other libraries because function can be setup later.
        
        You can also add the current day within the timestamp:
        
        ```python3
        from timelogging import getLog
        log = getLog('%Y-%m-%d %H:%M:%S')
        
        log('This', 'is', 'a', 'test.')
        ```
        
        And this outputs your custom timestamp before the printout:
        
        ```
        2020-12-31 16:20:00  This is a test.
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
