Metadata-Version: 2.1
Name: santodigital-gcpLogging
Version: 0.0.2
Summary: A package to register GCP loggings
Home-page: UNKNOWN
Author: Mohamed Rasvi
Author-email: developer@santodigital.com.br
License: UNKNOWN
Description: # GCP LOGGING MANAGER Package
        
        This is a simple gcp logging package where you can easily write logs to gcp stackdriver with custom parameters.
        
        # GCP stack driver matrics  
        param type: Resource type to filter in Stackdriver Logging (required)
        param service: Service name to filter in Stackdriver Logging (required)
        param log_name: Log Name to filter in Stackdriver Logging
        param region: GCP Service Region to filter in Stackdriver Logging (optional) if not provided will take default value region='us-east1'
        
        # Sample code 
        
        ```python
        from  santodigital_gcpLogging import CloudRunLoggingClient
        
        # Resouce must match with strack driver resource.type (cloud_run_revision or bigquery_resource etc)
        resource = 'cloud_run_revision'
        name = 'santodigital-gcpLogging'
        SERVICE = 'santodigital-gcpLogging'
        logger = CloudRunLoggingClient(resource, SERVICE, name)
        
        """
        :param struct: (Dict) Custom information for logging into Stackdriver Logging.
        :param severity: Severity Level for the logging.
        """
        def report(struct, severity='INFO'):
            logger.report(struct, severity)
            return True
        
        if __name__ == '__main__':
            print(report({'info':'success'}, 'WARNING'))
        
        ```
        
        
        
        
        
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
