Skip to main content

# Logger

    type Logger = {
      audit: LogFunction;
      debug: LogFunction;
      error: LogFunction;
      fatal: LogFunction;
      getLogLevel: () => LogLevels;
      info: LogFunction;
      setLogLevel: (level: LogLevels) => void;
      setOptions: (options: RuntimeLoggerOptions) => void;
      warn: LogFunction;
    };

Logger

## Properties​

### audit​

    audit: LogFunction;

log audit message

### debug​

    debug: LogFunction;

log debug message

### error​

    error: LogFunction;

log error message

### fatal​

    fatal: LogFunction;

log fatal message

### getLogLevel()​

    getLogLevel: () => LogLevels;

get current log level

#### Returns​

`LogLevels`

current log level. LogLevels

### info​

    info: LogFunction;

log info message

### setLogLevel()​

    setLogLevel: (level: LogLevels) => void;

set log level. default: LogLevels.INFO

#### Parameters​

##### level​

`LogLevels`

#### Returns​

`void`

### setOptions()​

    setOptions: (options: RuntimeLoggerOptions) => void;

Change logger properties post initialization

#### Parameters​

##### options​

`RuntimeLoggerOptions`

RuntimeLoggerOptions

#### Returns​

`void`

### warn​

    warn: LogFunction;

log warning message