1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00

docs(log): fix docs mistake (denoland/deno_std#372)

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

View file

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