UNPKG

899 BJavaScriptView Raw
1"use strict";
2/**
3 * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com>
4 * SPDX-License-Identifier: LGPL-3.0-or-later
5 */
6var __importDefault = (this && this.__importDefault) || function (mod) {
7 return (mod && mod.__esModule) ? mod : { "default": mod };
8};
9Object.defineProperty(exports, "__esModule", { value: true });
10const project_1 = __importDefault(require("liferay-npm-build-tools-common/lib/project"));
11/**
12 * Log errors
13 * @return {void}
14 */
15function error(...args) {
16 console.log(...args);
17}
18exports.error = error;
19/**
20 * Log message as console.log does
21 * @return {void}
22 */
23function info(...args) {
24 console.log(...args);
25}
26exports.info = info;
27/**
28 * Log message as console.log does but only if verbose is on
29 * @return {void}
30 */
31function debug(...args) {
32 if (project_1.default.misc.verbose) {
33 console.log(...args);
34 }
35}
36exports.debug = debug;