Registry / observability / pygogo

pygogo

JSON →
library1.3.0pypypi✓ verified 86d ago

A Python logging library with super powers, providing easy-to-use loggers with customizable formatting, handlers, and verbosity control. Current version 1.3.0 with infrequent releases.

pip install pygogo
INSTALL
IMPORT
SIG · PYGOGO
P
pygogo
observabilitypythonv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Gogo
from pygogo import Gogo

Create and use a basic logger.

from pygogo import Gogo logger = Gogo(__name__).logger logger.info('Hello, world!')
Debug
Known issues
deprecatedThe 'verbose' parameter in Gogo init is deprecated. Use 'level' with a logging constant.
fix
Replace verbose=True with level=logging.DEBUG.
affects: >=1.0.0
gotchaCalling Gogo(__name__).logger twice creates two separate loggers with the same name. The second overwrites the first's handlers.
fix
Assign the logger to a variable and reuse it instead of calling Gogo repeatedly.
affects: all
Errors
Common errors & fixes
AttributeError: module 'pygogo' has no attribute 'Gogo'
Incorrect import statement like 'import pygogo' then 'pygogo.Gogo'.
fix
Use 'from pygogo import Gogo'.
ValueError: Unknown level 'INFO'
Passing a string level like 'INFO' instead of logging.INFO.
fix
Use logging.INFO or pass integer level (e.g., 20).
Upgrade
Version history
1.3.0latest on PyPI · released Feb 22, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
2
Resources
pygogo — pip install pygogo · libregistry