Skip to content

Commit

Permalink
fix: use arrow function in simple logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kshutkin committed Oct 30, 2022
1 parent 4e28d67 commit 59a923b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/src/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const createLogger = <ErrorContext = Error>(tag?: string) => {
let myAppender = (message: LogMessage<ErrorContext>) => { 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,
Expand Down

0 comments on commit 59a923b

Please sign in to comment.