Skip to content

cuteLogger, support both for server and browser

Notifications You must be signed in to change notification settings

billcz/cuteLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple logger support both for node server and browser, base on debug.

Install

npm install cuteLogger

How to Use?

You can write code like this both on server and browse;

import _logger from 'cuteLogger';
const logger = new _logger('appName', 'moduleName');

logger.debug('hello cuteLogger');
logger.info('hello cuteLogger');
logger.warn('hello cuteLogger');
logger.error('hello cuteLogger');

The output maybe like this:

appName:debug:moduleName hello cuteLogger +0ms
appName:info:moduleName hello cuteLogger +0ms
appName:warn:moduleName hello cuteLogger +0ms
appName:error:moduleName hello cuteLogger +0ms

About

cuteLogger, support both for server and browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published