Registry / observability / glog
library0.3.1pypypi✓ verified 85d ago

glog is a simple Google-style logging wrapper for Python, inspired by the C++ Google logging library. Version 0.3.1 is the latest on PyPI, though the project is in maintenance mode with no active development.

pip install glog
INSTALL
IMPORT
SIG · GLOG
G
glog
observabilitypythonv0.3.1
Install
2.6s avg
Import
109ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.116s · 19.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.102s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

glog
import glog

Basic usage showing log levels and exception logging.

import glog if __name__ == '__main__': glog.info('This is an informational message') glog.warn('This is a warning') glog.error('This is an error') try: 1/0 except ZeroDivisionError: glog.exception('Caught an exception')
Debug
Known issues
deprecatedglog uses `glog.warn()` which is deprecated; use `glog.warning()` as per Python logging conventions.
fix
Replace `glog.warn(...)` with `glog.warning(...)`.
affects: all
gotchaglog outputs to stderr by default, not stdout. This can confuse users expecting console output.
fix
Redirect stderr if needed, or configure logging to output elsewhere.
affects: all
gotchaglog uses its own formatting and does not respect Python's standard logging configuration. Changes via `logging.basicConfig` have no effect.
fix
Use glog's internal configuration or consider another library if you need standard logging integration.
affects: all
Errors
Common errors & fixes
AttributeError: module 'glog' has no attribute 'set_level'
glog does not expose a set_level function; levels are set via environment variable GLOG_minloglevel or flags.
fix
Set the environment variable GLOG_minloglevel (e.g., export GLOG_minloglevel=1) or use glog's internal logging level control.
ImportError: No module named glog
glog is not installed or the package name is confused with google-glog (C++).
fix
Install with 'pip install glog'. Note: this is a Python-only package, not the C++ Google logging library.
TypeError: log() missing 1 required positional argument: 'msg'
Calling glog.log() incorrectly; glog.log() requires at least a message argument.
fix
Use glog.info('message'), glog.warning('message'), etc., instead of glog.log().
Upgrade
Version history
0.3.1latest on PyPI · released Dec 14, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
glog — pip install glog · libregistry