@qn-pandora/node-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

node-sdk

Pandora 2.0 应用平台使用 Node 开发自定义 API、自定义算子相关功能的 SDK,主要对应用平台通信协议、KV 存储及一些基本工具的使用进行封装。

Usage

使用默认配置的logger

const pandoraNodeSdk = require('@qn-pandora/node-sdk');
const logger = pandoraNodeSdk.logger

logger.log({
    level: 'info',
    message: 'info log'
})

修改logger默认配置

const pandoraNodeSdk = require('@qn-pandora/node-sdk');
const configLogging = pandoraNodeSdk.configLogging

const logger = configLogging('error', 'phoenix_app_error.log')
logger.log({
    level: 'error',
    message: 'error log'
})

Readme

Keywords

Package Sidebar

Install

npm i @qn-pandora/node-sdk

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

37.5 kB

Total Files

40

Last publish

Collaborators

  • tianxiumei
  • lansefengxinzi
  • csu-feizao
  • pandora_qiniu