error-visor


Nameerror-visor JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/vvalenzuela96/error_visor_project
SummaryLibrería para guardar registros de errores y warnings personalizados en json
upload_time2023-01-25 12:44:21
maintainer
docs_urlNone
authorVictor Valenzuela M
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 instalamos con:

```bash
pip install error-visor
```

Importamos el módulo:

```python
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:

```python
except Exception as ex:

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

```

Para una `advertencia`/`warning`:

```python
except Exception as ex:

	EV.log(
		EV.Warning(
			description='Advertencia de muestra',
			ex=ex,
      		follow_me=True
		)
	)

```

Y listo, tendremos el registro en un json!


## CHANGELOG

### v0.0.6
- Fixed: Package .whl has the wrong uploaded

### v0.0.5
- Added: printable function to EV.log() -> It prints the status of the log to save
- Fixed: When we pass an Exception with args, it raises a JSONDecodeError!

### v0.0.4
- Modified: Now to log should be:
```python
EV.log(EV.Error(...))
#or
EV.log(EV.Warning(...))
```
- Modified: RTypes have new attr `context`. Its a merge between `function` and `class`.
- Fixed: Make of new log when the `logs` dir exists. The new log file wasn't created or created empty.

### v0.0.3
- Fixed: Making of new `logs` dir when that not exists. Really work now!
- Added: Warning Type
- Modified: RTypes have have new format to use. RTypes are like: `EV.Error`, `EV.Warning`, etc.

### v0.0.2
- Fixed: Making of new `logs` dir when that not exists

### v0.0.1
- First upload

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vvalenzuela96/error_visor_project",
    "name": "error-visor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Victor Valenzuela M",
    "author_email": "vi.valenzuelam@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d5/00/028a77df4c14c7abd380d95da5b6c0a4d65ab28703d3fa4bc6a4afff277a/error_visor-0.0.6.tar.gz",
    "platform": null,
    "description": "# Error Visor\r\n\r\n## Que es?\r\nEs un proyecto destinado a guardar registros personalizados en un archivo json que ser\u00e1 utilizado\r\nm\u00e1s tarde para visualizarse en una app web de forma localizada y ordenada. Solo es necesaria una\r\nsentencia y listo, ya tienes el registro del error en tu app.\r\n\r\n## C\u00f3mo funciona?\r\n\r\nPrimero instalamos con:\r\n\r\n```bash\r\npip install error-visor\r\n```\r\n\r\nImportamos el m\u00f3dulo:\r\n\r\n```python\r\nimport error_visor as EV\r\n```\r\n\r\nLuego localizamos el lugar desde donde queremos mandar el log. Por ejemplo un bloque `exception` y\r\ncolocamos el siguiente c\u00f3digo:\r\n\r\n```python\r\nexcept Exception as ex:\r\n\r\n\tEV.log(\r\n\t\tEV.Error(\r\n\t\t\tdescription='Error de muestra',\r\n\t\t\tex=ex,\r\n\t\t\tpriority=EV.Priority.HIGH\r\n\t\t)\r\n\t)\r\n\r\n```\r\n\r\nPara una `advertencia`/`warning`:\r\n\r\n```python\r\nexcept Exception as ex:\r\n\r\n\tEV.log(\r\n\t\tEV.Warning(\r\n\t\t\tdescription='Advertencia de muestra',\r\n\t\t\tex=ex,\r\n      \t\tfollow_me=True\r\n\t\t)\r\n\t)\r\n\r\n```\r\n\r\nY listo, tendremos el registro en un json!\r\n\r\n\r\n## CHANGELOG\r\n\r\n### v0.0.6\r\n- Fixed: Package .whl has the wrong uploaded\r\n\r\n### v0.0.5\r\n- Added: printable function to EV.log() -> It prints the status of the log to save\r\n- Fixed: When we pass an Exception with args, it raises a JSONDecodeError!\r\n\r\n### v0.0.4\r\n- Modified: Now to log should be:\r\n```python\r\nEV.log(EV.Error(...))\r\n#or\r\nEV.log(EV.Warning(...))\r\n```\r\n- Modified: RTypes have new attr `context`. Its a merge between `function` and `class`.\r\n- Fixed: Make of new log when the `logs` dir exists. The new log file wasn't created or created empty.\r\n\r\n### v0.0.3\r\n- Fixed: Making of new `logs` dir when that not exists. Really work now!\r\n- Added: Warning Type\r\n- Modified: RTypes have have new format to use. RTypes are like: `EV.Error`, `EV.Warning`, etc.\r\n\r\n### v0.0.2\r\n- Fixed: Making of new `logs` dir when that not exists\r\n\r\n### v0.0.1\r\n- First upload\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Librer\u00eda para guardar registros de errores y warnings personalizados en json",
    "version": "0.0.6",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c80a809327f1c60e02519a48ac522a60689c6b0b6c3139aa353fb899049d912",
                "md5": "dc4508bd5fc96d8f2daabe4a303167cf",
                "sha256": "3698589497b06c125dd27e1cfe1b802bafbd50dcccd29b1da123be5357f22ecc"
            },
            "downloads": -1,
            "filename": "error_visor-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc4508bd5fc96d8f2daabe4a303167cf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3994,
            "upload_time": "2023-01-25T12:44:19",
            "upload_time_iso_8601": "2023-01-25T12:44:19.827817Z",
            "url": "https://files.pythonhosted.org/packages/7c/80/a809327f1c60e02519a48ac522a60689c6b0b6c3139aa353fb899049d912/error_visor-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d500028a77df4c14c7abd380d95da5b6c0a4d65ab28703d3fa4bc6a4afff277a",
                "md5": "a7b8709b2e1cbeb939da753e29ddf9dc",
                "sha256": "b0181136e2d663dc430b7e031ed592011af0867a8c5a1da35b32a95bbb50c5ff"
            },
            "downloads": -1,
            "filename": "error_visor-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "a7b8709b2e1cbeb939da753e29ddf9dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3810,
            "upload_time": "2023-01-25T12:44:21",
            "upload_time_iso_8601": "2023-01-25T12:44:21.791767Z",
            "url": "https://files.pythonhosted.org/packages/d5/00/028a77df4c14c7abd380d95da5b6c0a4d65ab28703d3fa4bc6a4afff277a/error_visor-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-25 12:44:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "vvalenzuela96",
    "github_project": "error_visor_project",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "error-visor"
}
        
Elapsed time: 0.10577s