nim-codex/tests/codex
Eric de88fd2c53
feat: create logging proxy (#663)
* implement a logging proxy

The logging proxy:
- prevents the need to import chronicles (as well as export except toJson),
- prevents the need to override `writeValue` or use or import nim-json-seralization elsewhere in the codebase, allowing for sole use of utils/json for de/serialization,
- and handles json formatting correctly in chronicles json sinks

* Rename logging -> logutils to avoid ambiguity with common names

* clean up

* add setProperty for JsonRecord, remove nim-json-serialization conflict

* Allow specifying textlines and json format separately

Not specifying a LogFormat will apply the formatting to both textlines and json sinks.

Specifying a LogFormat will apply the formatting to only that sink.

* remove unneeded usages of std/json

We only need to import utils/json instead of std/json

* move serialization from rest/json to utils/json so it can be shared

* fix NoColors ambiguity

Was causing unit tests to fail on Windows.

* Remove nre usage to fix Windows error

Windows was erroring with `could not load: pcre64.dll`. Instead of fixing that error, remove the pcre usage :)

* Add logutils module doc

* Shorten logutils.formatIt for `NBytes`

Both json and textlines formatIt were not needed, and could be combined into one formatIt

* remove debug integration test config

debug output and logformat of json for integration test logs

* Use ## module doc to support docgen

* bump nim-poseidon2 to export fromBytes

Before the changes in this branch, fromBytes was likely being resolved by nim-stew, or other dependency. With the changes in this branch, that dependency was removed and fromBytes could no longer be resolved. By exporting fromBytes from nim-poseidon, the correct resolution is now happening.

* fixes to get compiling after rebasing master

* Add support for Result types being logged using formatIt
2024-01-22 23:35:03 -08:00
..
blockexchange Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
helpers chore: improve log information (#656) 2023-12-19 04:29:18 +00:00
merkletree Build slots (#668) 2024-01-11 08:45:23 -08:00
node feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
sales feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
slots feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
stores Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
utils feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
examples.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
helpers.nim Integrate slot builder (#666) 2024-01-08 14:52:46 -08:00
testasyncheapqueue.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testasyncstreamwrapper.nim Tests for AsyncStreamWrapper (#463) 2023-06-30 14:18:58 +02:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
testindexingstrategy.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testlogutils.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
testmanifest.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
testmerkletree.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
testnode.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testpurchasing.nim feat: partial payouts for cancelled requests (#561) 2023-10-24 10:12:54 +00:00
testsales.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
testslots.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
teststores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
teststorestream.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
testsystemclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testutils.nim Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
testvalidation.nim Fix slot queue push (#542) 2023-09-04 16:42:09 +02:00