Code Monkey home page Code Monkey logo

k-logging's Introduction

K-Logging

image

Build Status npm version Downloads License

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','display', '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

DEMO

http://k-logging.404mzk.com/Example/Website/index.html

website show: http://k-logging.404mzk.com/Example/Website/website.html?app_key=klogging

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 

API

key options default instructions
app_key Any Numbers and letters '' A unique identifier
open_level ['info','warn','error'] ['info','warn','error'] Limit the output level
method ['console','display','website'] ['console','display','website'] Output way
evel_js Boolean false Whether in the display and input box to perform js website
switch_listener Boolean true Whether listening to restore the default Settings, the commissioning of the web page is true, type app_key will return to the default Settings

k-logging's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.