剑客
关注科技互联网

K-Logging:实时把 Log 显示在其他网页的库

K-Logging

K-Logging:实时把 Log 显示在其他网页的库

Hope is the most useful you used js library of the log

  • Configurable: Can be configured to display your log
  • Website: Can be real-time display of your log in other web page

Examples

singleKLogging.setOptions(
      {
        app_name: 'K-Logging',
        open_level : ['info','warn','error'],
        method: ['console','website'],
      }
)
singleKLogging.info('info_msg')
singleKLogging.warn('warn_msg')
singleKLogging.error('warm_msg')

The corresponding website page is http://qiniu.404mzk.com/website.html?app_name=K-Logging

tips: The corresponding app_name and set consitent

see exaple.gif

Installation

<script src="http://qiniu.404mzk.com/K-Logging_0.0.1.js"></script>

And it’s just as easy with npm :

npm i --save npm install k-logging
分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址