-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move winston NodeJS transports to cli package (#4509)
* Move winston NodeJS transports to cli package * Remove old profile test * Fix types in beacon-node test * Remove logger.important usage * Use function constructor * Enable customization of logLevel per module * Don't mutate module on print * Update logger options * Update logger cli tests * Remove dynamic log level test * Check-types * Remove legacy item * Use LoggerModule for vmon
- Loading branch information
Showing
35 changed files
with
528 additions
and
595 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import {config} from "@lodestar/config/default"; | ||
import {ssz} from "@lodestar/types"; | ||
import {WinstonLogger} from "@lodestar/utils"; | ||
import {createMetrics, IMetrics} from "../../../src/metrics/index.js"; | ||
import {testLogger} from "../../utils/logger.js"; | ||
|
||
export function createMetricsTest(): IMetrics { | ||
const state = ssz.phase0.BeaconState.defaultViewDU(); | ||
const logger = new WinstonLogger(); | ||
const logger = testLogger(); | ||
return createMetrics({enabled: true, port: 0}, config, state, logger); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.