1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-12 17:09:00 -05:00

docs(log): fix docs mistake (#372)

This commit is contained in:
梨子(Riko) 2019-04-30 23:19:55 +08:00 committed by Ryan Dahl
parent e2c187003d
commit a9c4141723

View file

@ -102,10 +102,10 @@ await log.setup({
functionFmt: new log.handlers.ConsoleHandler("DEBUG", {
formatter: logRecord => {
let msg = `{logRecord.level} {logRecord.msg}`;
let msg = `${logRecord.level} ${logRecord.msg}`;
logRecord.args.forEach((arg, index) => {
msg += `, arg{index}: {arg}`;
msg += `, arg${index}: ${arg}`;
});
return msg;