mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
18 lines
341 B
JavaScript
18 lines
341 B
JavaScript
function logger(type, text) {
|
|
if (type === "log")
|
|
console.log(text);
|
|
else if (type === "warn")
|
|
console.warn(text);
|
|
else if (type === "error")
|
|
console.error(text);
|
|
}
|
|
|
|
function log_msg(text) {
|
|
logger("log", text);
|
|
}
|
|
function warn_msg(text) {
|
|
logger("warn", text);
|
|
}
|
|
function error_msg(text) {
|
|
logger("error", text);
|
|
}
|