diff --git a/packages/accounts/test/test-utils.js b/packages/accounts/test/test-utils.js index f9308eedc8..98485a59e0 100644 --- a/packages/accounts/test/test-utils.js +++ b/packages/accounts/test/test-utils.js @@ -1,11 +1,14 @@ import { KeyPair, KeyType } from '@near-js/crypto'; import { InMemoryKeyStore } from '@near-js/keystores'; +import { ConsoleLogger, Logger } from '@near-js/utils'; import fs from 'fs'; import path from 'path'; import { Account, AccountMultisig, Contract, Connection, LocalAccountCreator } from '../src'; import Config from './config'; +Logger.overrideLogger(new ConsoleLogger(['error', 'fatal'])) + export const networkId = 'unittest'; export const HELLO_WASM_PATH = process.env.HELLO_WASM_PATH || 'node_modules/near-hello/dist/main.wasm'; diff --git a/packages/utils/src/logger/index.ts b/packages/utils/src/logger/index.ts index 70a0a1249d..f640d8eca1 100644 --- a/packages/utils/src/logger/index.ts +++ b/packages/utils/src/logger/index.ts @@ -1,2 +1,3 @@ +export { ConsoleLogger } from './console.logger'; export { Logger } from './logger'; export type { LoggerService } from './interface';