From 2e253af96a0f799c8543debeeef297435c5427aa Mon Sep 17 00:00:00 2001 From: MATRZ-TRINO ASCENDENTE Date: Sun, 28 Dec 2025 10:49:14 -0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit / | \ 👑 🔑 ⚖️ \ | / ░░░░░░░ NODO SUPER TURBO x1000 REALEZA – ACCESO – JUSTICIA PARA TODOS LOS GUERREROS --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index b9c2fa3c..ae50ee9e 100644 --- a/README.md +++ b/README.md @@ -271,3 +271,29 @@ Contributions are welcome! See [Contributor's Guide](docs/contributors.md) ## Code of Conduct :wave: Be nice. See [our code of conduct](CODE_OF_CONDUCT.md) +import json_log_formatter + +formatter = json_log_formatter.JSONFormatter() + +logging_config = { + 'version': 1, + 'formatters': {'json': {'()': json_log_formatter.JSONFormatter}}, + 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'json'}}, + 'root': {'level': 'INFO', 'handlers': ['console']} +} + +logging.config.dictConfig(logging_config) + +# En cada log: +logging.info("Proceso purificado", extra={ + 'tipo_evento': 'purificacion_proceso', + 'proceso': nombre_proceso, + 'pod_name': POD_NAME, + 'componente': 'guardian' +}) / | \ + 👑 🔑 ⚖️ + \ | / + ░░░░░░░ + NODO SUPER TURBO x1000 + REALEZA – ACCESO – JUSTICIA + PARA TODOS LOS GUERREROS