MCPcopy
hub / github.com/directus/directus / useLogger

Function useLogger

api/src/logger/index.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18} = { logger: undefined, logsStream: undefined, httpLogsStream: undefined };
19
20export const useLogger = () => {
21 if (_cache.logger) {
22 return _cache.logger;
23 }
24
25 _cache.logger = createLogger();
26
27 return _cache.logger;
28};
29
30export const getLogsStream = (pretty: boolean) => {
31 if (_cache.logsStream) {

Callers 15

ensureDeploymentWebhooksFunction · 0.85
cache.tsFile · 0.85
emitActionMethod · 0.85
emitInitMethod · 0.85
constructorMethod · 0.85
runOperationFlowMethod · 0.85
runWebhookFlowMethod · 0.85
loadMethod · 0.85
executeOperationMethod · 0.85
getMailerFunction · 0.85
getAuthProviderFunction · 0.85
registerAuthProvidersFunction · 0.85

Calls 1

createLoggerFunction · 0.70

Tested by

no test coverage detected