semvec/pypi-packages huggingface dataset:
gcp-cloud-logger 0.2.4
Google Cloud Platform logging package
Requires Python: >=3.6

# 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)