lighthouse/book/src
Age Manning aa1ed787e9 Logging via the HTTP API (#4074)
This PR adds the ability to read the Lighthouse logs from the HTTP API for both the BN and the VC. 

This is done in such a way to as minimize any kind of performance hit by adding this feature.

The current design creates a tokio broadcast channel and mixes is into a form of slog drain that combines with our main global logger drain, only if the http api is enabled. 

The drain gets the logs, checks the log level and drops them if they are below INFO. If they are INFO or higher, it sends them via a broadcast channel only if there are users subscribed to the HTTP API channel. If not, it drops the logs. 

If there are more than one subscriber, the channel clones the log records and converts them to json in their independent HTTP API tasks. 

Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-05-22 05:57:08 +00:00
..
css Make API friendly to block explorers (#702) 2019-12-19 11:45:28 +11:00
imgs Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
js Add support for multiple testnet flags (#1396) 2020-07-29 06:39:29 +00:00
LaTeX Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
advanced_database.md use state cache to optimise historical state lookup (#4228) 2023-05-05 00:51:57 +00:00
advanced_metrics.md Configurable monitoring endpoint frequency (#3530) 2022-09-05 08:29:00 +00:00
advanced_networking.md Improve Lighthouse Connectivity Via ENR TCP Update (#4057) 2023-03-21 05:14:57 +00:00
advanced-datadir.md Fixing a few typos / documentation (#3531) 2022-09-05 04:50:48 +00:00
advanced-pre-releases.md Fix links in docs (#3219) 2022-05-31 06:09:07 +00:00
advanced-proposer-only.md Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
advanced-release-candidates.md Use "release candidate" in book (#2920) 2022-01-17 06:09:58 +00:00
advanced.md Document the freezer DB space-time trade-off (#808) 2020-01-20 10:01:58 +11:00
api-bn.md improve api-bn.md (#4244) 2023-05-05 00:51:58 +00:00
api-lighthouse.md Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
api-vc-auth-header.md Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
api-vc-endpoints.md Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
api-vc-sig-header.md Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
api-vc.md Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
api.md Update book with missing Lighthouse endpoints (#3769) 2022-12-09 09:20:10 +00:00
builders.md Fix log on initializing external block builder (#4267) 2023-05-09 07:15:06 +00:00
checkpoint-sync.md Fix docs for oldest_block_slot (#3911) 2023-01-25 02:17:10 +00:00
cli.md Rename Eth1/Eth2 in documents (#3021) 2022-03-02 01:05:08 +00:00
contributing.md [Contribution docs] Add GitPOAP Badge to Display Number of Minted GitPOAPs for Contributors (#3343) 2022-08-09 02:27:04 +00:00
cross-compiling.md Add maxperf build profile (#3608) 2022-09-29 06:13:33 +00:00
database-migrations.md use state cache to optimise historical state lookup (#4228) 2023-05-05 00:51:57 +00:00
docker.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
faq.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
graffiti.md Update graffiti.md (#3537) 2022-09-05 08:29:02 +00:00
homebrew.md Document Homebrew package (#2885) 2022-01-08 01:15:07 +00:00
http.md Rename Eth1/Eth2 in documents (#3021) 2022-03-02 01:05:08 +00:00
installation-binaries.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
installation-priorities.md Reformat tables and add borders (#3377) 2022-07-27 00:51:07 +00:00
installation-source.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
installation.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
intro.md Add Run a Node guide (#3681) 2022-11-28 10:05:43 +00:00
key-management.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
key-recovery.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
late-block-re-orgs.md Make re-org strat more cautious and add more config (#4151) 2023-04-13 07:05:01 +00:00
lighthouse-ui.md Feat: lighthouse book - ui authentication (#4232) 2023-05-01 02:15:57 +00:00
mainnet-validator.md Update links in Lighthouse Book (#4279) 2023-05-10 00:33:11 +00:00
merge-migration.md Fix some dead links in markdown files (#3885) 2023-01-17 05:13:49 +00:00
partial-withdrawal.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
pi.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
redundancy.md Update stale sections of the book (#3671) 2022-11-07 06:48:32 +00:00
run_a_node.md Update links in Lighthouse Book (#4279) 2023-05-10 00:33:11 +00:00
setup.md Replace ganache-cli with anvil (#3555) 2023-05-15 07:22:02 +00:00
slasher.md Modularise slasher backend (#3443) 2022-08-15 01:30:56 +00:00
slashing-protection.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
suggested-fee-recipient.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
SUMMARY.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
ui-authentication.md Feat: lighthouse book - ui authentication (#4232) 2023-05-01 02:15:57 +00:00
ui-configuration.md Docs for Siren (#4023) 2023-02-28 02:20:52 +00:00
ui-faqs.md Siren Ui Lighthouse Version Requirments (#4093) 2023-03-16 08:03:43 +00:00
ui-installation.md Siren Ui Lighthouse Version Requirments (#4093) 2023-03-16 08:03:43 +00:00
ui-usage.md Docs for Siren (#4023) 2023-02-28 02:20:52 +00:00
validator-doppelganger.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
validator-inclusion.md Remove participation rate from API docs (#3955) 2023-02-09 04:31:22 +00:00
validator-management.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
validator-monitoring.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
validator-web3signer.md Add client authentication to Web3Signer validators (#3170) 2022-05-18 23:14:37 +00:00
voluntary-exit.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00