Skip to main content

This plugin is deprecated, please use vdk-logging-format instead.

This is a POC level implementation of a plugin which changes the logging format of vdk-core to LTSV for the purposes of structured data visualization.

The new format has the following fields, separated by tabs:

  • timestamp: a timestamp of when the log is made;
  • created: the same timestamp in the unix epoch format;
  • jobname: the name of the data job;
  • level: the logging level - one of INFO, WARNING, DEBUG, ERROR;
  • modulename: the name of the module, inside of which the logging call is made;
  • filename: the name of the file containing the logging call being made;
  • lineno: the number of the line of code, at which the logging call is made;
  • funcname: the name of the function, inside which the loggin call is made;
  • attemptid: string identifying this particular execution of the data job;
  • message: any additional logged information.

The label names follow the labelling recommendations found at http://ltsv.org/.

Usage

Switching vdk logging can be done by simply installing the plugin:

pip install vdk-logging-ltsv

And all logs will be automatically formatted to LTSV format. They would start to look something like this:

@timestamp:2021-08-04T12:51:11	created:1628070671	jobname:example-job	level:DEBUG	modulename:vdk.internal.trino_connection	filename:managed_connection_base.py	lineno:69	funcname:connect	attemptid:1628070671-452613-739749	message:Established <trino.dbapi.Connection object at 0x10b9b1d30>
@timestamp:2021-08-04T12:51:11	created:1628070671	jobname:example-job	level:DEBUG	modulename:vdk.internal.trino_connection	filename:managed_cursor.py	lineno:29	funcname:execute	attemptid:1628070671-452613-739749	message:Executing query: select 1

Metadata

Release files for vdk-logging-ltsv 0.1.693641831

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

Source distribution (sdist)

Source distribution for vdk-logging-ltsv 0.1.693641831
File Size Uploaded
vdk-logging-ltsv-0.1.693641831.tar.gz 2.4 kB Details

Release files / vdk-logging-ltsv-0.1.693641831.tar.gz

Download URL vdk-logging-ltsv-0.1.693641831.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f2595164eeae6eb0e871c374b7c787b5d3d386cf4181584c3b5da185bfc66339
BLAKE2b-256 checksum
How to use checksums
302f1fda4fc235b7513c9dfda8d5b3aae6f57a0aec286d6ce95d45c662365af7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.15
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