Skip to main content

Librería para guardar registros de errores y warnings personalizados en json

Project description

Error Visor

Que es?

Es un proyecto destinado a guardar registros personalizados en un archivo json que será utilizado más tarde para visualizarse en una app web de forma localizada y ordenada. Solo es necesaria una sentencia y listo, ya tienes el registro del error en tu app.

Cómo funciona?

Primero importamos el módulo:

import error_visor as EV

Luego localizamos el lugar desde donde queremos mandar el log. Por ejemplo un bloque exception y colocamos el siguiente código:

except Exception as ex:

	EV.Logger.err(
		EV.Error(
			description='Error de muestra',
			priority=EV.Priority.HIGH,
			ex=ex
		)
	)

Y listo, tendremos el registro en un json!

CHANGELOG

v0.0.2

  • Fixed: Making of new logs dir when that not exists

v0.0.1

  • First upload

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

error_visor-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

error_visor-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file error_visor-0.0.2.tar.gz.

File metadata

  • Download URL: error_visor-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for error_visor-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a91baedd07195358409391db55615d4dffebaec954a9dab62ce681e82a9e889
MD5 081204d290a903c7c5308f3e8e7f075b
BLAKE2b-256 9e86a6fd42cb68d00fb1618b0f7dee4525037d8b61f39216e3ec138d1bb78b75

See more details on using hashes here.

File details

Details for the file error_visor-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: error_visor-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for error_visor-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97f788c0a3a851a8408114ba6785808a1193c42fd0b09b972f6e896ef06a5f77
MD5 5970b02f50a38df7ecf01a85881efdd3
BLAKE2b-256 c6fafb2c7a76645539266f357541599aead8e7700f01c355fa219cae2afba3ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page