mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
docs(log): fix docs mistake (denoland/deno_std#372)
Original: a9c4141723
This commit is contained in:
parent
ab9c159b50
commit
adf9cf9949
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