Config

Description:
  • SDK 'Config' module exposing optional configuration methods.
Source:
SDK 'Config' module exposing optional configuration methods.

Example

import { Config } from '@oracle/bots-node-sdk';
// or
import * as Config from '@oracle/bots-node-sdk/config';

Methods

setLogger(logger)

Description:
  • Establish logging instance. By default, console logger is used.
Source:
Example
import { Config } from '@oracle/bots-node-sdk';
const log4js = require('log4js');
Config.setLogger(log4js.getLogger());
Parameters:
Name Type Description
logger logging utility

Type Definitions

CustomLogger

Description:
  • Custom logger interface if using a custom logging utility.
Source:
Properties:
Name Type Description
trace function trace method
debug function debug method
info function info method
warn function warn method
error function error method
fatal function fatal method
Custom logger interface if using a custom logging utility.
Type:
  • Object