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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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