MCPcopy
hub / github.com/eggjs/egg / getLogContent

Function getLogContent

test/lib/plugins/schedule.test.ts:27–30  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

25});
26
27function getLogContent(name: string) {
28 const logPath = path.join(getFilepath('apps'), name, 'logs', name, `${name}-web.log`);
29 return fs.readFileSync(logPath, 'utf8');
30}
31
32function contains(content: string, match: string) {
33 return content.split('\n').filter(line => line.includes(match)).length;

Callers 1

schedule.test.tsFile · 0.85

Calls 1

getFilepathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…