Metadata-Version: 2.1
Name: gaecl
Version: 0.1.0
Summary: Collerated request logger for GAE python3 flexible|standard environment
Home-page: https://github.com/takashi8/gaecl
Author: Takashi Morioka
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/takashi8/gaecl/issues
Project-URL: Say Thanks!, https://github.com/takashi8/gaecl#say-thanks
Project-URL: Source, https://github.com/takashi8/gaecl
Keywords: google app engine stackdriver
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: google-cloud-logging
Requires-Dist: werkzeug

GAE Collerated Logger
===

Collerated request logger for GAE python3 flexible|standard environment

Install
---

from PyPI
```
pip install gaecl
```

from github
```
pip install --user git+https://github.com/takashi8/gaecl
```

Use as WSGI Middleware
---

```python
from gaecl import RequestLoggerMiddleware

# app: WSGI app instance

app = Flask(__name__)
app = RequestLoggerMiddleware(
    app,
    loglevel='INFO',
    project=os.getenv('GOOGLE_CLOUD_PROJECT'),
    module=os.getenv('GAE_SERVICE'),
    version=os.getenv('GAE_VERSION'),
)

@app.route('/')
def log():
    logging.info('info log')
    logging.warn('warn log')
    logging.error('error log')
    logging.critical('critical log')
    return 'ok'
```


