Config

SDK 'Config' module exposing optional configuration methods.
Source:
Example
import { Config } from '@oracle/bots-node-sdk';
// or
import * as Config from '@oracle/bots-node-sdk/config';

Methods

setLogger(logger)

Source:
Establish logging instance. By default, console logger is used.
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

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