Metadata-Version: 2.1
Name: logsmith
Version: 0.0.2
Summary: A Logging Library for Python
Home-page: https://github.com/TanmoySG/logsmith
Author: Tanmoy Sen Gupta
Author-email: tanmoysps@gmail.com
License: MIT
Description: # logsmith
        A Logging Library for Python
        
        ![](./Screenshot%202022-03-15%20at%2012.09.24%20PM.png)
        
        ## Install
        
        ```
        pip install logsmith
        ```
        
        ## Usage 
        
        ```
        from logsmith import log
        
        log = log()
        
        log.INFO("Information")
        log.WARN("Warning")
        log.SUCCESS("Success!")
        log.FAILURE("Failed")
        log.CRITICAL("Critical")
        ```
        
        ### Run with Configurations
        
        logsmith supports three flags - 
        
        `ENV` [String] Enviroment used for Logging. Takes the name of Environment as String.
        
        `console_only` [Boolean] Takes value `true` or `false`. Logs only to console if set to `true`.
        
        `logfile` [String] Takes path of loggingfile as string. 
        
        ```
        from logsmith import log
        
        log = log()
        
        log.configure(ENV="DEV", logfile="logs", console_only=True)
        
        log.INFO("Information")
        ```
Keywords: imports,logs,python,logging
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
