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:
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", {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue