【发布时间】:2020-05-14 12:02:52
【问题描述】:
我写了一个非常简单的 Typescript 类。但我无法在控制台中看到记录器。我想知道我做错了什么。我参考了以下链接。 https://deno.land/std/log
import * as log from "https://deno.land/std/log/mod.ts";
export class Test1 {
public show() {
log.debug("Hello world");
log.info("Hello world");
log.warning("Hello world");
log.error("Hello world");
log.critical("500 Internal server error");
console.log("Hello ....")
}
}
const test = new Test1();
test.show();
请在这种情况下建议我。我正在学习 deno。
【问题讨论】:
标签: typescript deno