UNPKG

589 BJavaScriptView Raw
1/**
2 * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com>
3 * SPDX-License-Identifier: LGPL-3.0-or-later
4 */
5
6import project from 'liferay-npm-build-tools-common/lib/project';
7
8/**
9 * Log errors
10 * @return {void}
11 */
12export function error(...args) {
13 console.log(...args);
14}
15
16/**
17 * Log message as console.log does
18 * @return {void}
19 */
20export function info(...args) {
21 console.log(...args);
22}
23
24/**
25 * Log message as console.log does but only if verbose is on
26 * @return {void}
27 */
28export function debug(...args) {
29 if (project.misc.verbose) {
30 console.log(...args);
31 }
32}