Tristan Brice Velloza Kildaire on Nostr: Just merged in the improved logging for TLang --- ## Purpose ✍️ The current ...
Just merged in the improved logging for TLang
---
## Purpose ✍️
The current logging mechanism is not as nice as it could be. It doesn't show line information and so forth.
Also I would probably want to distinguish between logs for debug build and those that actually are for user usage.
So a custom `MessageTransform` would be nice but that means migrating to `dlog`.
## Todo 🗒️
- [x] Switch over from `gprintln` to `DEBUG`, `INFO`, `ERROR` and `WARNING`
- [x] Test
- [x] Decide on the logging style to use
- [ ] ~~Close logger when done~~
* **NOTE**: This might require a `dlog` _and_ `gogga` update
---
*PR*:
https://deavmi.assigned.network/git/tlang/tlang/issues/170---
#devstr #tlang
Published at
2024-04-14 10:55:30Event JSON
{
"id": "001fd7163e8bcbd14435291fd2d70df504d6ec9b4e05a4524bf2bb8a09c99ac0",
"pubkey": "d6149823c90c4865e4bc434a4be1a1ee8f72aabd8328dd059ba4f11f7633b0b6",
"created_at": 1713084930,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"t",
"devstr"
],
[
"nonce",
"16140901064495857720",
"10"
]
],
"content": "Just merged in the improved logging for TLang\n\n---\n\n## Purpose ✍️ \n\nThe current logging mechanism is not as nice as it could be. It doesn't show line information and so forth.\n\nAlso I would probably want to distinguish between logs for debug build and those that actually are for user usage.\n\nSo a custom `MessageTransform` would be nice but that means migrating to `dlog`.\n\n## Todo 🗒️ \n\n- [x] Switch over from `gprintln` to `DEBUG`, `INFO`, `ERROR` and `WARNING`\n- [x] Test\n- [x] Decide on the logging style to use\n- [ ] ~~Close logger when done~~\n * **NOTE**: This might require a `dlog` _and_ `gogga` update\n\n---\n\n*PR*: https://deavmi.assigned.network/git/tlang/tlang/issues/170\n\n---\n\n#devstr #tlang\n",
"sig": "df592412cbbfd272b7e4f36110de1a26c83c206b86f06d46febddfb6c42e574feed320d1390abc11fbdc1bbeb8c3fa3e1f6b82c3ba24f86bf368a0a67b1b01ab"
}