# Variable logger`Const`

logger: {
error: (
err: string | Error,
errorMessageGroup?: string,
additionalUsefulAttributes?: { [a: string]: string },
) => Promise<void>;
info: (...args: any[]) => void;
init: (getStateFn: () => Record<string, any>) => void;
log: (...args: any[]) => void;
logAPIResponseTime: (url: string, time: number) => void;
setLogLevel: (desiredLogLevel: LogLevel) => void;
setPrefix: (thisPrefix: string) => void;
warn: (...args: any[]) => void;
} = ...

#### Type Declaration

- ##### error: (
  err: string | Error,
  errorMessageGroup?: string,
  additionalUsefulAttributes?: { [a: string]: string },
  ) => Promise<void>

- ##### info: (...args: any[]) => void

- ##### init: (getStateFn: () => Record<string, any>) => void

- ##### log: (...args: any[]) => void

- ##### logAPIResponseTime: (url: string, time: number) => void

  #### Deprecated

  use newRelicPageAction() instead

- ##### setLogLevel: (desiredLogLevel: LogLevel) => void

- ##### setPrefix: (thisPrefix: string) => void

- ##### warn: (...args: any[]) => void

- Defined in packages/shared/src/utils/logger/logger.ts:139