mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
12 lines
472 B
JavaScript
12 lines
472 B
JavaScript
import clc from "cli-color";
|
|
|
|
export const log_success = (msg, ...optionalParams) =>
|
|
console.log(clc.green(msg), ...optionalParams);
|
|
export const log_error = (msg, ...optionalParams) =>
|
|
console.log(clc.red(msg), ...optionalParams);
|
|
export const log_info = (msg, ...optionalParams) =>
|
|
console.log(clc.bgBlue(msg), ...optionalParams);
|
|
var debugMsg = clc.xterm(245);
|
|
export const log_debug = (msg, ...optionalParams) =>
|
|
console.log(debugMsg(msg), ...optionalParams);
|