log file path
parent
a1120d0624
commit
0d7955f2ae
|
@ -4456,9 +4456,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.RemoteClientLogger = void 0;
|
exports.RemoteClientLogger = void 0;
|
||||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
||||||
const node_fs_1 = __importDefault(__nccwpck_require__(87561));
|
const node_fs_1 = __importDefault(__nccwpck_require__(87561));
|
||||||
|
const node_path_1 = __importDefault(__nccwpck_require__(49411));
|
||||||
|
const cloud_runner_folders_1 = __nccwpck_require__(77795);
|
||||||
class RemoteClientLogger {
|
class RemoteClientLogger {
|
||||||
static get LogFilePath() {
|
static get LogFilePath() {
|
||||||
return `job-log.txt`;
|
return node_path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathAbsolute, `job-log.txt`);
|
||||||
}
|
}
|
||||||
static log(message) {
|
static log(message) {
|
||||||
const finalMessage = `[Client] ${message}`;
|
const finalMessage = `[Client] ${message}`;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,11 @@
|
||||||
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
|
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
|
import path from 'node:path';
|
||||||
|
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
|
||||||
|
|
||||||
export class RemoteClientLogger {
|
export class RemoteClientLogger {
|
||||||
private static get LogFilePath() {
|
private static get LogFilePath() {
|
||||||
return `job-log.txt`;
|
return path.join(CloudRunnerFolders.builderPathAbsolute, `job-log.txt`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static log(message: string) {
|
public static log(message: string) {
|
||||||
|
|
Loading…
Reference in New Issue