MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / startLogging

Function startLogging

src/helpers/start.test.js:4–8  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

2import { spy } from 'sinon'
3
4export const startLogging = (opts) => {
5 const onError = spy()
6 const stopLogging = logProcessErrors({ onError, exit: false, ...opts })
7 return { onError, stopLogging }
8}

Callers 7

error.test.jsFile · 0.90
main.test.jsFile · 0.90
repeat.test.jsFile · 0.90
warnings.test.jsFile · 0.90
limit.test.jsFile · 0.90
events.test.jsFile · 0.90
startExitLoggingFunction · 0.90

Calls 1

logProcessErrorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…