Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/webpack/lib/logging/ |
Upload File : |
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const LogType = Object.freeze({ error: /** @type {"error"} */ ("error"), // message, c style arguments warn: /** @type {"warn"} */ ("warn"), // message, c style arguments info: /** @type {"info"} */ ("info"), // message, c style arguments log: /** @type {"log"} */ ("log"), // message, c style arguments debug: /** @type {"debug"} */ ("debug"), // message, c style arguments trace: /** @type {"trace"} */ ("trace"), // no arguments group: /** @type {"group"} */ ("group"), // [label] groupCollapsed: /** @type {"groupCollapsed"} */ ("groupCollapsed"), // [label] groupEnd: /** @type {"groupEnd"} */ ("groupEnd"), // [label] profile: /** @type {"profile"} */ ("profile"), // [profileName] profileEnd: /** @type {"profileEnd"} */ ("profileEnd"), // [profileName] time: /** @type {"time"} */ ("time"), // name, time as [seconds, nanoseconds] clear: /** @type {"clear"} */ ("clear"), // no arguments status: /** @type {"status"} */ ("status") // message, arguments }); exports.LogType = LogType; /** @typedef {typeof LogType[keyof typeof LogType]} LogTypeEnum */ const LOG_SYMBOL = Symbol("webpack logger raw log method"); const TIMERS_SYMBOL = Symbol("webpack logger times"); class WebpackLogger { /** * @param {function(LogTypeEnum, any[]=): void} log log function */ constructor(log) { this[LOG_SYMBOL] = log; } error(...args) { this[LOG_SYMBOL](LogType.error, args); } warn(...args) { this[LOG_SYMBOL](LogType.warn, args); } info(...args) { this[LOG_SYMBOL](LogType.info, args); } log(...args) { this[LOG_SYMBOL](LogType.log, args); } debug(...args) { this[LOG_SYMBOL](LogType.debug, args); } assert(assertion, ...args) { if (!assertion) { this[LOG_SYMBOL](LogType.error, args); } } trace() { this[LOG_SYMBOL](LogType.trace, ["Trace"]); } clear() { this[LOG_SYMBOL](LogType.clear); } status(...args) { this[LOG_SYMBOL](LogType.status, args); } group(...args) { this[LOG_SYMBOL](LogType.group, args); } groupCollapsed(...args) { this[LOG_SYMBOL](LogType.groupCollapsed, args); } groupEnd(...args) { this[LOG_SYMBOL](LogType.groupEnd, args); } profile(label) { this[LOG_SYMBOL](LogType.profile, [label]); } profileEnd(label) { this[LOG_SYMBOL](LogType.profileEnd, [label]); } time(label) { this[TIMERS_SYMBOL] = this[TIMERS_SYMBOL] || new Map(); this[TIMERS_SYMBOL].set(label, process.hrtime()); } timeLog(label) { const prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label); if (!prev) { throw new Error(`No such label '${label}' for WebpackLogger.timeLog()`); } const time = process.hrtime(prev); this[LOG_SYMBOL](LogType.time, [label, ...time]); } timeEnd(label) { const prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label); if (!prev) { throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`); } const time = process.hrtime(prev); this[TIMERS_SYMBOL].delete(label); this[LOG_SYMBOL](LogType.time, [label, ...time]); } } exports.Logger = WebpackLogger;