Metadata-Version: 2.1
Name: gcp-cloud-logger
Version: 0.2.1
Summary: Google Cloud Platform logging package
Home-page: https://github.com/turisesonia/gcp_cloud_logger
Author: Sam Yao
Author-email: turisesonia@gmail.com
License: UNKNOWN
Description: # GCP Cloud logger
        
        Package for [Google Cloud Logging client](https://github.com/googleapis/python-logging)
        
        ---
        
        ### Install
        
        ```
        pip install gcp-cloud-logger
        ```
        
        ### Usage
        
        ```python
        from gcp_cloud_logger import cloud_logger as logger
        
        # Default use GOOGLE_APPLICATION_CREDENTIALS to get credential.json path
        logger.setup(
            name="logger_name",
            credential_path="/your/service/account/json",
        )
        # OR
        logger.setup(
            name="logger_name",
            credential_json="{}",
        )
        
        # Info
        logger.info("Test info log message")
        
        # Warning
        logger.warn("Test warning log message")
        
        # Error
        logger.error("Test error log message")
        
        # Critical
        logger.critical("Test critical log message")
        ```
        
        ### Result
        
        ![Result log](/docs/result.png)
        
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
