lighthouse/lcli/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
..
block_root.rs Super small improvement: Remove unnecessary mut (#3736) 2022-11-21 03:15:54 +00:00
change_genesis_time.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
check_deposit_data.rs Fix Rust 1.69 lints (#4222) 2023-04-21 18:29:28 +00:00
create_payload_header.rs Clean capella (#4019) 2023-03-01 03:19:02 +00:00
deploy_deposit_contract.rs Replace ganache-cli with anvil (#3555) 2023-05-15 07:22:02 +00:00
eth1_genesis.rs Super small improvement: Remove unnecessary mut (#3736) 2022-11-21 03:15:54 +00:00
generate_bootnode_enr.rs Support for Ipv6 (#4046) 2023-03-14 01:13:34 +00:00
indexed_attestations.rs Add lcli indexed-attestations (#3221) 2022-05-31 06:09:08 +00:00
insecure_validators.rs Fix local testnet scripts (#2229) 2021-03-30 05:17:58 +00:00
interop_genesis.rs v1.1.1 spec updates (#2684) 2021-12-02 14:26:54 +11:00
main.rs Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
mnemonic_validators.rs Post merge local testnets (#3807) 2023-05-17 05:51:54 +00:00
new_testnet.rs Post merge local testnets (#3807) 2023-05-17 05:51:54 +00:00
parse_ssz.rs Realized unrealized experimentation (#3322) 2022-07-25 23:53:26 +00:00
replace_state_pubkeys.rs Update lcli pubkey replace command (#2677) 2021-12-02 14:26:53 +11:00
skip_slots.rs Super small improvement: Remove unnecessary mut (#3736) 2022-11-21 03:15:54 +00:00
transition_blocks.rs Fix attestation withdrawals root mismatch (#4249) 2023-05-09 10:48:15 +00:00