@ray-js/log4js
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

English | 简体中文

@ray-js/log4js

latest download

小程序日志组件

Installation

$ npm install @ray-js/log4js
# or
$ yarn add @ray-js/log4js

Usage

import log4js from '@ray-js/log4js';

// Set a log tag to make it easier to find
log4js.setTag('log4js');
// info log
log4js.info('info',  { info: 'info' });
// warn log
log4js.warn('warn',  { warn: 'warn' });
// performance log
log4js.performance('use time', 13);
// error log
log4js.error('error', { error: 'error' });
// info log is not written to the local log of the App
log4js.infoWithoutAppContext('info',  { info: 'info' });
// warn log is not written to the local log of the App
log4js.warnWithoutAppContext('warn',  { warn: 'warn' });
// performance log is not written to the local log of the App
log4js.performanceWithoutAppContext('use time', 13);
// error log is not written to the local log of the App
log4js.errorWithoutAppContext('error', { error: 'error' });

Readme

Keywords

none

Package Sidebar

Install

npm i @ray-js/log4js

Weekly Downloads

14

Version

0.0.5

License

MIT

Unpacked Size

12.4 kB

Total Files

4

Last publish

Collaborators

  • tuyafe