diff --git a/libs/react-helpers/src/hooks/use-logger.ts b/libs/react-helpers/src/hooks/use-logger.ts index f19227151..cf62cf218 100644 --- a/libs/react-helpers/src/hooks/use-logger.ts +++ b/libs/react-helpers/src/hooks/use-logger.ts @@ -1,13 +1,11 @@ import { useRef } from 'react'; import { BrowserTracing } from '@sentry/tracing'; import * as Sentry from '@sentry/browser'; -import type { LocalLogger } from '@vegaprotocol/utils'; +import type { LocalLogger, LoggerConf } from '@vegaprotocol/utils'; import { localLoggerFactory } from '@vegaprotocol/utils'; -interface Props { +interface Props extends LoggerConf { dsn?: string; - application?: string; - tags?: string[]; } export const useLogger = ({ dsn, ...props }: Props) => { diff --git a/libs/utils/src/lib/local-logger.ts b/libs/utils/src/lib/local-logger.ts index 52cd5f9e8..1525cad65 100644 --- a/libs/utils/src/lib/local-logger.ts +++ b/libs/utils/src/lib/local-logger.ts @@ -21,7 +21,7 @@ type ConsoleMethod = { }[keyof Console] & string; -interface LoggerConf { +export interface LoggerConf { application?: string; tags?: string[]; logLevel?: LogLevelsType;