Skip to content

console.log在移动端可视化打印log,支持颜色配置%c,格式化输出json

License

Notifications You must be signed in to change notification settings

lamovv/console-log-h5

Repository files navigation

console-log-h5

console.log,方便在移动设备上查看log

Coverage Status

Usage

顶部btn栏可拖动log面板

import 'console-log-h5';

// 正常打印log
console.log(['H', 'a', 'p', 'p', 'y'], {a: 1, b: 6});
// 彩色打印log 
console.log('%c red log', '#f00');
// 过滤log
console.log('[ignore] 被过滤的log');

// 开启“打印error”后,可打印js error信息

About

console.log在移动端可视化打印log,支持颜色配置%c,格式化输出json

Resources

License

Stars

Watchers

Forks

Packages

No packages published