Metadata-Version: 2.1
Name: thelogger
Version: 0.1.1
Summary: super easy to use package for logging code
Home-page: https://github.com/tom1919/TheLogger
Author: Tom1919
Author-email: py.notify1@gmail.com
License: Apache 2.0
Download-URL: https://github.com/tom1919/TheLogger/archive/refs/tags/v0.1.1.tar.gz
Description: # TheLogger
        
        Easy to use logger object for creating code logs. Just import it and it's set up, ready to go.
        
        ### Installation
        
        ```
        $ pip install thelogger
        ```
        
        ### Usage
        
        my_script.py:
        ```python class:"lineNo"
        from thelogger import lg
        
        # log messages
        lg.info('Hello World')
        lg.warning('warning message')
        lg.error('error message')
        
        # start logging messages to a file
        lg.reset(file = './demo_log.txt')
        
        # shorthand convenience methods for logging messages
        lg.i('this is an info message')
        lg.w('this is a warning message')
        
        # remove log handlers
        lg.close()
        lg.i('nothing is logged because there are no log handlers')
        
        # add default log handlers
        lg.reset()
        ```
        
        Output to console:
        ```
        [I 2021-11-13 08:50:36] Hello World
        [W 2021-11-13 08:50:36] warning message
        [E 2021-11-13 08:50:36] error message
        [I 2021-11-13 08:50:36] this is an info message
        [W 2021-11-13 08:50:36] this is a warning message
        ```
        
        Output to demo_log.txt:
        ```
        [I 2021-11-13 08:50:36 my_script:12] this is an info message
        [W 2021-11-13 08:50:36 my_script:13] this is a warning message
        ```
        
Keywords: log,logging,logger
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
