MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / addLog

Function addLog

src/back/index.ts:300–300  ·  view source on GitHub ↗
(entry: ILogEntry)

Source from the content-addressed store, hash-verified

298 : path.join(process.platform == 'darwin' ? state.configFolder : path.dirname(content.exePath), 'launcher.log'));
299
300 const addLog = (entry: ILogEntry): number => { return state.log.push(entry) - 1; };
301 global.log = {
302 trace: logFactory(LogLevel.TRACE, state.socketServer, addLog, state.logFile, state.verbose, state.apiEmitters.onLog),
303 debug: logFactory(LogLevel.DEBUG, state.socketServer, addLog, state.logFile, state.verbose, state.apiEmitters.onLog),

Callers 2

extLogFactoryFunction · 0.85
logFactoryFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected