# Variable logger`Const`

logger: {
error: ((err, errorMessageGroup?, additionalUsefulAttributes?) => Promise<void>);
info: ((...args) => void);
init: ((store) => void);
log: ((...args) => void);
logAPIResponseTime: ((url, time) => void);
setLogLevel: ((desiredLogLevel) => void);
setPrefix: ((thisPrefix) => void);
warn: ((...args) => void);
} = ...

#### Type declaration

- ##### error: ((err, errorMessageGroup?, additionalUsefulAttributes?) => Promise<void>)

  - - (err, errorMessageGroup?, additionalUsefulAttributes?): Promise<void>

    - #### Parameters

      - err: string | Error
      - errorMessageGroup: string = "unknown group"

        Use this to group error messages together with a string that does not vary as frequently. Do not pass programId, verificationId, etc

      - additionalUsefulAttributes: {
        [a: string]: string;
        } = {}

        - ##### [a: string]: string

      #### Returns Promise<void>

- ##### info: ((...args) => void)

  - - (...args): void

    - #### Parameters

      - `Rest` ...args: any[]

      #### Returns void

- ##### init: ((store) => void)

  - - (store): void

    - #### Parameters

      - store: VerificationStore

      #### Returns void

- ##### log: ((...args) => void)

  - - (...args): void

    - #### Parameters

      - `Rest` ...args: any[]

      #### Returns void

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

  - - (url, time): void

    - #### Parameters

      - url: string
      - time: number

      #### Returns void

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

  - - (desiredLogLevel): void

    - #### Parameters

      - desiredLogLevel: LogLevel

      #### Returns void

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

  - - (thisPrefix): void

    - #### Parameters

      - thisPrefix: string

      #### Returns void

- ##### warn: ((...args) => void)

  - - (...args): void

    - #### Parameters

      - `Rest` ...args: any[]

      #### Returns void

- Defined in jslib/src/lib/utils/logger/logger.ts:152