Collerated request logger for GAE python3 flexible|standard environment
Project description
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
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gaecl-0.1.0-py3-none-any.whl
(6.0 kB
view details)
File details
Details for the file gaecl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gaecl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98152783b9df7f3a4edb996f3bf63a5a32bc0e11e2dc9d4f65edeee86caea3a1
|
|
| MD5 |
14e7ba8aa45b2343b192e4f4e8b1b733
|
|
| BLAKE2b-256 |
1b67e1e2b5b20e6cfe79140c6b0464e8fa67f3ab5c1989271be978d9df481df7
|