Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle-log: enhanced log highlighting
Open ade opened 3 months ago

Refactor out radicle::Logger and radicle::logger::Logger to radicle-log crate.

Enhance the test logger to highlight:

  1. Any base58 strings with a deterministic colour
  2. Any git refs to be boldened and underlined a. Any base58 strings inside refs to adhere to 1.
  3. Any git OIDs (short and long) first 6 characters mapped to a hex colour with light and dark background adjustments
  4. … any timestamps also coloured as per 3. 👀
  5. error level logs are all red and underlined (with rules 1 - 4 applied)
  6. warning level logs are all yellow and underlined (witith rules 1 - 4 applied)

I /think/ I managed to preserve the existing feature toggles, but worth double checking!

ade opened with revision 90a185bc on base b937a938 +581 -181 3 months ago

Refactor out radicle::Logger and radicle::logger::Logger to radicle-log crate.

Enhance the test logger to highlight:

  1. Any base58 strings with a deterministic colour
  2. Any git refs to be boldened and underlined a. Any base58 strings inside refs to adhere to 1.
  3. Any git OIDs (short and long) first 6 characters mapped to a hex colour with light and dark background adjustments
  4. … any timestamps also coloured as per 3. 👀
  5. error level logs are all red and underlined (with rules 1 - 4 applied)
  6. warning level logs are all yellow and underlined (witith rules 1 - 4 applied)

I /think/ I managed to preserve the existing feature toggles, but worth double checking!

lorenz pushed revision 2 8a0b020e on base b937a938 +683 -185 3 months ago

Distill

lorenz pushed revision 3 af22c124 on base b937a938 +588 -185 3 months ago

Fix:

  • Corretly account for rename while moving files from radicle to radicle-log.
  • Fix feature flags.
ade pushed revision 4 f366079c on base b937a938 +594 -185 3 months ago

Honour NO_COLOR environment variable: https://no-color.org/

ade pushed revision 5 d9f96345 on base b937a938 +619 -185 3 months ago

log: add aliase support for base58 strings via RAD_ALIASES env var

As an example, you can set the following to shorten alice, bob, eve and the repo OID in the logs:

$ RAD_ALIASES="z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk=bob,z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi=alice,z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z=eve,z42hL2jL4XNk6K8oHQaSWfMgCL7ji=test-repo" cargo nextest run --no-capture
ade pushed revision 6 c9775bed on base 50fb228a +617 -184 2 months ago
fintohaps pushed revision 7 0d095305 on base 50fb228a +623 -184 2 months ago

Changes:

  • Improvements to mutex use
fintohaps pushed revision 8 d0f6de0f on base 993428df +623 -184 2 months ago

Rebase