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:
parent
e2c187003d
commit
a9c4141723
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue