nim-codex/tests/codex
Eric 27f585eb6f
feat: create logging proxy (#653)
* 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
2023-12-19 22:12:47 +00:00
..
blockexchange Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
helpers chore: improve log information (#656) 2023-12-19 04:29:18 +00:00
merkletree Bump questionable and test for tree init failure (#630) 2023-11-21 19:30:14 +01:00
sales feat: create logging proxy (#653) 2023-12-19 22:12:47 +00:00
stores Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
utils feat: create logging proxy (#653) 2023-12-19 22:12:47 +00:00
examples.nim Add challenge to prove callback (#649) 2023-12-11 11:29:15 +01:00
helpers.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01: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 (#653) 2023-12-19 22:12:47 +00:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim backport changes from fix-erasure-tests (#618) 2023-11-14 08:53:06 -08:00
testlogutils.nim feat: create logging proxy (#653) 2023-12-19 22:12:47 +00:00
testmanifest.nim Verifiable manifests (#642) 2023-12-12 08:11:54 +00:00
testmerkletree.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
testnode.nim feat: create logging proxy (#653) 2023-12-19 22:12:47 +00: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
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