Skip to main content

Yamlog uses a rotating file that rollovers at 128 KB, it writes messages in YAML format since it’s more easy to parse –using the international format for date and time–, and it also logs the higher-level messages to the standard error into single lines.

To setup the logging:

import yamlog
yamlog.setup(filename)

where filename is the file where is going to be logged; /tmp/python.log by default.

And to tear down it:

yamlog.teardown()

Then, in each module where is going to be used, there is to add:

import yamlog
_log = yamlog.logger(__name__)

so it passes the module name where it’s being run. Now, can be used the logging methods –debug(), info(), warning(), error(), critical()– to indicate the importance of a logged message.

Change history

v0.9, 2010-02-12

  • Initial release.

Metadata

Release files for Yamlog 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Yamlog 0.9
File Size Uploaded
Yamlog-0.9.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Yamlog 0.9
File Interpreter ABI Platform
Yamlog-0.9-py2.6.egg Legacy Egg format - - Details

Total release size: 15.1 kB

Release files / Yamlog-0.9.tar.gz

Download URL Yamlog-0.9.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
56d9688a3cf25cb9e52023d26cc446e3cf5aece5f455a217b15da89dc86e7cbe
BLAKE2b-256 checksum
How to use checksums
d127a9738a4117eec006d8ee6f1c41011aa179e1df67895be9b8478cff0d0cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Yamlog-0.9-py2.6.egg

Download URL Yamlog-0.9-py2.6.egg
Size 8.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
6c867d292345d76b279153cd1db8db0c55c302723cb4bbde594fdb4f96ae3fc6
BLAKE2b-256 checksum
How to use checksums
12d6163fa47e4de46ebf01c6e9cbf607bb6b41b6dfae2f5625ac41c2f85b768d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page