mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
log file path
This commit is contained in:
parent
a6ec38049b
commit
a86e483861
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
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 path from 'node:path';
|
||||||
|
import CloudRunner from '../cloud-runner';
|
||||||
|
|
||||||
export class RemoteClientLogger {
|
export class RemoteClientLogger {
|
||||||
private static get LogFilePath() {
|
private static get LogFilePath() {
|
||||||
@ -26,7 +27,9 @@ export class RemoteClientLogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static appendToFile(message: string) {
|
public static appendToFile(message: string) {
|
||||||
fs.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
if (CloudRunner.isCloudRunnerEnvironment) {
|
||||||
|
fs.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static printCollectedLogs() {
|
public static printCollectedLogs() {
|
||||||
|
Loading…
Reference in New Issue
Block a user