mirror of
https://github.com/github/codeql-action.git
synced 2025-12-09 09:18:15 +08:00
27 lines
899 B
JavaScript
Generated
27 lines
899 B
JavaScript
Generated
"use strict";
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
result["default"] = mod;
|
|
return result;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const core = __importStar(require("@actions/core"));
|
|
function getActionsLogger() {
|
|
return core;
|
|
}
|
|
exports.getActionsLogger = getActionsLogger;
|
|
function getRunnerLogger(debugMode) {
|
|
return {
|
|
debug: debugMode ? console.debug : () => undefined,
|
|
info: console.info,
|
|
warning: console.warn,
|
|
error: console.error,
|
|
isDebug: () => debugMode,
|
|
startGroup: () => undefined,
|
|
endGroup: () => undefined,
|
|
};
|
|
}
|
|
exports.getRunnerLogger = getRunnerLogger;
|
|
//# sourceMappingURL=logging.js.map
|