MCPcopy Create free account
hub / github.com/microsoft/SandDance / image

Method image

docs/app/js/sanddance-app.js:58216–58228  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

58214 return noop;
58215 }
58216 image(_ref) {
58217 let { logLevel , priority , image , message ="" , scale =1 } = _ref;
58218 if (!this._shouldLog(logLevel || priority)) return noop;
58219 return (0, _env.isBrowser) ? logImageInBrowser({
58220 image,
58221 message,
58222 scale
58223 }) : logImageInNode({
58224 image,
58225 message,
58226 scale
58227 });
58228 }
58229 time(logLevel, message) {
58230 return this._getLogFunction(logLevel, message, console.time ? console.time : console.info);
58231 }

Callers 1

sanddance-app.jsFile · 0.45

Calls 3

_shouldLogMethod · 0.95
logImageInBrowserFunction · 0.70
logImageInNodeFunction · 0.70

Tested by

no test coverage detected