diff --git a/logger/src/simple.ts b/logger/src/simple.ts index e05364f..ef5a6dd 100644 --- a/logger/src/simple.ts +++ b/logger/src/simple.ts @@ -5,7 +5,7 @@ export const createLogger = (tag?: string) => { let myAppender = (message: LogMessage) => { globalAppender && globalAppender(message); }; return Object.assign( - function log(message: string, loglevel: LogLevel = LogLevel.info, context?: ErrorContext) { + (message: string, loglevel: LogLevel = LogLevel.info, context?: ErrorContext) => { myAppender && myAppender({ action: Action.log, message,